Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why printf is working for the me

Status
Not open for further replies.

amarg

Programmer
Nov 19, 2002
106
IN
Hi,

I have one job just filling three recodes from the different variables ( from database, from environment variable, from hardcoded etc) and inserting that record in the one of the table in my database. Two record are inserted
properly, but the last one missed the one field( filled with the spaces).

There is three insert call from my C program.

Last one is not working properly.

If i put a simple printf("%s\n", "Amar"); before the third insert call, All the record are inserted properly.

Please anyone give me a clue what is happening here.

Regards,
Amar
 
It's not possible to answer this without seeing a little more of your code (in particular, how you get/set the value for the last field).

[tt]________________________________________________________________
[pc2]Roger
Life is a game of cards in which the deck contains only jokers.[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top