06-25-2014 01:45 AM
for(a=0;a<65;a++){
Name[a]=bytess[a];
}
sprintf (msg, "Name: %c ", Name[0]);
WriteLine (iFile, msg, -1);
in sprintf am only recieving one integer,how to get all 64 bytes in msg,i have to disply name in single line
06-25-2014 01:55 AM
Hello, this is a very basiq question about C language: %c means a single character, while the entire string (up to the first NUL character, of course) requires %s.
If you have problems at this level yshould consider reading some C manual or at least googling some informations: this is one of the first pages on sprintf that could have clarified your doubts.