bug-hurd
[Top][All Lists]
Advanced

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

snprintf: no string is outputed if the input string is longer than the b


From: James Morrison
Subject: snprintf: no string is outputed if the input string is longer than the buffer
Date: Sun, 22 Jul 2001 08:28:23 -0700 (PDT)

 That subject is way too long, but that is the entire message.

eg.
  char b[5];
  snprintf(b,5,"123456");
  printf("%s\n",b);

output:

end output

=====
James Morrison
   University of Waterloo
   Computer Science - Digital Hardware
   1B

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]