ARGC/ARGV Strangeness - Code is working

pking123-rieW9WUcm8FFJ04o6PK0Fg at public.gmane.org pking123-rieW9WUcm8FFJ04o6PK0Fg at public.gmane.org
Wed Sep 21 08:36:09 UTC 2005


> Bad habit.  What happens if your argument is longer than 4 chars?  Try
> using strncpy(3).
> 

I think a later poster suggested to use argc[count] directly and it 
would be a more "global" fix. The reason for the 5 characters was 
arbitrary, since I don't feel that there is too much of a chance of 
my needing to obtain ascii values for numbers greater than 9,999.

Paul

--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list