hi,
I am using C api's for accessing the MySQL server, I want to make use of
the mysql api's inside the functions I have made. I do not want to print
the description of the error, instead, I want to display out the error
code corresponding to that message.
Is there any description about this in this.I know about the perror by
which one can get the message corresponding to error, but i want to make
the return type of my api as int ( which is the error code),
I am using my api and inside this I am using mysql's api's e.g.

sip_server_display_error(int exitcode)                  //my function :
here I want it's return type as 'int'
{
        fprintf(stderr, "%s\n", mysql_error(&mysql) ); //mysql api
         exit(exitcode );
}

please, if anyone can help me...

Thanks and regards,
Chetan Lavti




---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to