home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 22787 < prev    next >
Encoding:
Text File  |  1993-01-05  |  926 b   |  34 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!wupost!calvin.sbc.com!gwj
  3. From: gwj@sbctri.sbc.com (Gregg W. Jensen)
  4. Subject: ctype question
  5. Message-ID: <1993Jan5.153619.23514@sbctri.sbc.com>
  6. Organization: Southwestern Bell Technology Resources, St.Louis, MO
  7. Date: Tue, 5 Jan 93 15:36:19 GMT
  8. Lines: 24
  9.  
  10. This is probably an easy one...
  11. I was trying to compile something last night that had an unresolved
  12. external __ctype_.  Looking in the file that uses _ctype_ was the code:
  13.  
  14. (this was near the top of the file)
  15. #ifndef _ctype_
  16. #ifdef _ctype
  17. #define _ctype_ _ctype
  18. #else
  19. extern char _ctype_[];
  20. #endif
  21. #endif
  22.  
  23. and the line that actually uses _ctype_:
  24.         if (!((_ctype_+1)[i]&(020|01|02|04|0200)) || col > end_col)
  25.             bell();
  26.  
  27. Is there something else that should be here?  In the include file ctype.h
  28. there
  29. is a _ctype_b, is this what I need?
  30.  
  31. Gregg Jensen
  32.  
  33. IF MAIL BOUNCES: send replies to gj9362@smaug.sbc.com !!!!
  34.