View Single Post
  #11   Spotlight this post!  
Unread 01-07-2007, 23:11
eugenebrooks eugenebrooks is offline
Team Role: Engineer
AKA: Dr. Brooks
no team (WRRF)
 
Join Date: Jan 2004
Rookie Year: 2001
Location: Livermore, CA
Posts: 601
eugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond repute
Re: C Programming Homework Help Needed

Quote:
Originally Posted by Pat McCarthy View Post
It was. Thanks.

Now how can I use the char value?

I tried:
printf("%c", buffer);

But that printed out an an arrow pointing up.
The result of sprintf is a null, '\0', terminated string.

printf("%s", buffer);


printf("%c", buffer[0]);
would print the first char

Eugene