Quote:
Originally Posted by Pat McCarthy
I am using this code:
Code:
#include <stdio.h>
int main(void)
{
char *buffer;
buffer = malloc(10);
float f = 12.4;
sprintf(buffer,"%f",f);
return 0;
}
Attached is the compile errors I am getting.
|
malloc() is likely declared in stdlib.h