FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
C++
Email
Print
Reprint

add to:
Del.icio.us
Digg
Google
Furl
Slashdot
Y! MyWeb
Blink
October 01, 2005

Managed String Library for C

(Page 6 of 7)

October, 2005: Managed String Library for C

Listing 5

// check for null string
if (retValue=isnullstr_m(&condition, str2)) {
  fprintf(
    stderr, 
    "error %d from isnullstr_m.\n", 
    retValue
  );
}
else {
  if (condition) {
    printf("(NULL)\n");
  }
}
// check for emptry string
if (retValue=isemptystr_m(&condition, str2)) {
  fprintf(
    stderr, 
    "error %d from isemptystr_m.\n", 
    retValue
  );
}
else {
  if (condition) {
    printf("(empty)\n");
  }
}

Previous Page | 1 | 2 | 3 | 4 | 5 | 6 | 7 Next Page
TOP 5 ARTICLES
No Top Articles.



MICROSITES
FEATURED TOPIC

ADDITIONAL TOPICS

INFO-LINK