8051 >> 8051

Pages: 1
Haggis2008
stranger


Reged: Feb 28 2008
Posts: 8
Sprintf problem
      #40082 - Thu Feb 28 2008 04:46 PM

Hello,

I am trying to use the sprintf function but when I compile and build the program and get the following message:

Signatures does not match: _sprintf

I have use sprintf in other compilers with no problem especially printing %d for a character.

Cheers
Paul


Post Extras: Print Post   Remind Me!   Notify Moderator  
Dan HenryModerator
Guru
****

Reged: Oct 16 2003
Posts: 3210
Loc: Boulder, Colorado U.S.A.
Re: Sprintf problem [Re: Haggis2008]
      #40122 - Thu Feb 28 2008 07:23 PM

Did you include <stdio.h> in the file that calls sprintf()?

Post Extras: Print Post   Remind Me!   Notify Moderator  
Haggis2008
stranger


Reged: Feb 28 2008
Posts: 8
Re: Sprintf problem [Re: Dan Henry]
      #40152 - Thu Feb 28 2008 07:58 PM

Doh!! I should have check the library.

Cheers
Paul


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 0 anonymous users are browsing this forum.

Moderator:  ndouglas, garth, jtemples, Dan Henry, Andrew L, Ryan, mikerj 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is enabled
      UBBCode is enabled

Rating:
Topic views: 1350

Rate this topic

Jump to

Contact Us | Privacy statement HI-TECH Software

Powered by UBB.threads™ 6.5.5