On Fri, Mar 14, 2014, Derek Martin wrote: > char *a = "foo"; > char *b = "bar"; > char c[7]; > strlcpy(a, c, 7); > strlcat(b, c, 7);
I guess you didn't read the man page? > $ gcc -o sj strjunk.c > [...]/ccW4BTCh.o: In function `main': > strjunk.c:(.text+0x38): undefined reference to `strlcpy' > strjunk.c:(.text+0x55): undefined reference to `strlcat' Oh, you use Linux. Of course they don't have useful man pages and miss important functions. Geez, even SunOS 5.x has these. Ok, this isn't going anywhere useful.
