Hello all,
Jump to memccpy(3) at the bottom. It says:
CONFORMING TO
SVr4, 4.3BSD, C99.
Now look at the following program:
$ cat memccp.c
#include
#include
int main() {
void *s, *d, *r;
s = malloc(1024);
d = malloc(1024);
r = memccpy(s, d, 0, 1024);
return 0;
}
And now compile it:
$ gcc -std=c99 -Wall memccp.c
memccp.c: In function ‘main’:
memccp.c:10: warning: implicit declaration of function ‘memccpy’
memccp.c:10: warning: assignment makes pointer from integer without a cast
Is this due to gcc not fully supporting C99? Would a possible solution
be to remove the -std=c99 from the compile options, or would that bring
other problems?
--
Mads Martin Joergensen, http://mmj.dk
"Why make things difficult, when it is possible to make them cryptic
and totally illogical, with just a little bit more effort?"
-- A. P. J.
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-packaging+help@opensuse.org