Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Pro*C sqlglm(): is error message null-terminated?

Pro*C sqlglm(): is error message null-terminated?

From: Dan Halbert <halbert_at_bbn.com>
Date: Mon, 21 Dec 1998 15:48:07 GMT
Message-ID: <halbert.914255105@franklin>


the sqlglm() routine available in Pro*C returns an error message and its length. I have seen casual examples in this newsgroup that assume the error message is null-terminated: for instance, they just print it with printf("%s",...). On the other hand, the Oracle docs don't seem to assume null-termination. Is the error message in fact guaranteed to be null-terminated?

Thanks,
Dan Halbert Received on Mon Dec 21 1998 - 09:48:07 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US