Re: convert int to string without using standard library (stdio.h)
- From: "ceeques" <cquestions@xxxxxxxxx>
- Date: 17 Jul 2006 15:42:50 -0700
Thanks for the repy:
I need to convert number (int, short) to a string but cannot use
sprintf as I am using an embedded system. I want to mix text and
number in a display function on the system's output (It doesn't support
printf) but it does have a text to screen function that accepts
strings. I would like to display counters with a message along with it.
Hope my question is clear now.
Thanks in advance,
cQ
spibou@xxxxxxxxx wrote:
ceeques wrote:
Hi
I am a novice in C. Could you guys help me solve this problem -
I need to convert integer(and /short) to string without using sprintf
(I dont have standard libray stdio.h).
for instance:-
int i =2;
char ch 'A
My result should be a string ==> "A2"
I don't understand what you're trying to do. Please
provide more examples. Also write down what your
function should accept as arguments and what its
return type should be. And also try to avoid syntax
errors like char ch 'A' ; it makes it harder to see what
your aim is.
Results are not going to a standard output - I have a function to
readout/display string from memory.
Ok , so where results should go then ?
.
- Follow-Ups:
- Re: convert int to string without using standard library (stdio.h)
- From: Default User
- Re: convert int to string without using standard library (stdio.h)
- From: Mark McIntyre
- Re: convert int to string without using standard library (stdio.h)
- References:
- Prev by Date: Re: converting string into integer
- Next by Date: Re: convert int to string without using standard library (stdio.h)
- Previous by thread: Re: convert int to string without using standard library (stdio.h)
- Next by thread: Re: convert int to string without using standard library (stdio.h)
- Index(es):
Relevant Pages
|