I'm trying to convert a number stored in a long variable to a string. I thought I could use the sprintf function, but it's not working. I have a long variable 'p' that I want to convert to a string and store in the pressure variable.
long p = 100744;
char pressure [16];
sprintf(pressure, "%ld", p);
I'm using Code Composer Studio 4.2.3. What am I doing wrong here? Is there an alternate way to do it?
One more question: I'm fairly new to Code Composer Studio, and I'm looking for a complete manual for the C Compiler. I.e. a manual that documents what the compiler supports and what it doesnt. I'm able to find a lot of "Getting Started" guides to on the TI Wiki page, but so far I cant find a manual. If someone could provide a link it would be appreciated.