M
Mat
Hi all.
This function is a GNU extension ok... so pls dont start with "this is
not standard C", "go to comp.*.unix"... here I have more probability to
get a good reply.
BTW, when I compile my app I get:
warning: implicit declaration of function `strnlen'
And I hate this
Ok, it's only a stupid warning in this case but I would like to know
the right define that allow me to include the standard prototype of the
function.
#ifdef __USE_GNU
extern size_t strnlen (__const char *__string, size_t __maxlen)
__THROW __attribute_pure__;
#endif
But if I try to compile with -D__USE_GNU the warning remains...
Someone can help me?
Bye,
-Mat-
P.S.
I have the same problem with crypt() ...
This function is a GNU extension ok... so pls dont start with "this is
not standard C", "go to comp.*.unix"... here I have more probability to
get a good reply.
BTW, when I compile my app I get:
warning: implicit declaration of function `strnlen'
And I hate this
Ok, it's only a stupid warning in this case but I would like to know
the right define that allow me to include the standard prototype of the
function.
From string.h :
#ifdef __USE_GNU
extern size_t strnlen (__const char *__string, size_t __maxlen)
__THROW __attribute_pure__;
#endif
But if I try to compile with -D__USE_GNU the warning remains...
Someone can help me?
Bye,
-Mat-
P.S.
I have the same problem with crypt() ...