2013年9月15日 - ascii needs to be big enough for the 5 char and a \0 . char ascii[5+1]; ... sscanf( input, "%5s", ...
stackoverflow.com