enum usage in esql
Posted in 1992
Joseph, Below is what I used: /******************************** cut here *************************/ #include <stdio.h> $include sqlca; typedef enum { TRUE=1, FALSE=0 } BOOL_ENUM; static BOOL_ENUM flag = FALSE; main() { char stringx[21]; sprintf(stringx,"Smart test"); flag=TRUE; if (flag==TRUE){ printf("flag is TRUE; stringx is %s\\n",stringx); } else { printf("flag is FALSE; stringx is %s\\n",stringx); } } /********************** cut here **************************/ Hope its what you're looking for. ps I tried mailing to you directly but kept getting it back. I guess tokarski@teradyne.com isn't working right for me. Bob Beaulieu bobb@netcom.com -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |Bob Beaulieu San Jose, CA bobb@netcom.com (408)723-0556 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~