begin  quoting Brad Beyenhof as of Tue, Jan 08, 2008 at 07:21:26AM -0800:
> On Jan 8, 2008 2:02 AM, SJS <[EMAIL PROTECTED]> wrote:
> > There's lots of stuff to criticize. Have fun.
> 
> From a functional standpoint, it runs and does what you built it to
> do... whether or not it's "the most efficient way," I'm impressed.
> 
> The only problems I encountered (as a newbish C guy) were a few

Nothing in the code struck you as a problem?

> compiling errors:
> sliding_nine.c: In function 'new':
> sliding_nine.c:208: warning: incompatible implicit declaration of
> built-in function 'strncpy'
> sliding_nine.c: In function 'main':
> sliding_nine.c:418: warning: incompatible implicit declaration of
> built-in function 'strlen'
> sliding_nine.c:421: warning: incompatible implicit declaration of
> built-in function 'strncpy'

Try changing #include <strings.h> to #include <string.h>.

I've seen both, but I don't remember which one is more standard.

> Those didn't keep the program from running as long as I supplied
> proper arguments, though.
> 
> This is with gcc version 4.1.3 20070929 on Ubuntu Server 7.10.

I should check the GCC version I used to compile and run it. Good
idea.

-- 
They say that C is the portable assembler of tool code
For values of 'portable' that mean 'a moderate workload'
Stewart Stremler

-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to