View Single Post
  #22   Spotlight this post!  
Unread 01-07-2007, 22:46
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
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