[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: programming



* Eric G. Miller (egm2@jps.net) spake thusly:
[ sizeof stuff snipped ]

Of course, writing
  char buf[80];
  buflen = sizeof(buf);
makes no sense. It's not like you don't know what buffer length is.

#define BUFLEN 80
char buf[BUFLEN];
...

Dima
-- 
Surely there is a polite way to say FOAD.                        -- Shmuel Metz
"Fornicate Off And Decease".                                 -- Rik Steenwinkel



Reply to: