Hi,
I am using sprintf like so where i want my numeric to be converted to a string
char string[100];
int result;
ret = sprintf(string, "%d", result);
does any one know if this will cause a memory leak ????
Another question.
is I have the following scenario -1234 is a numeric
I want to convert this to a string like so "-1234"
What would be the best c function to do this ????
I am using sprintf like so where i want my numeric to be converted to a string
char string[100];
int result;
ret = sprintf(string, "%d", result);
does any one know if this will cause a memory leak ????
Another question.
is I have the following scenario -1234 is a numeric
I want to convert this to a string like so "-1234"
What would be the best c function to do this ????
Comment