home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / misc / 3501 < prev    next >
Encoding:
Internet Message Format  |  1992-09-03  |  949 b 

  1. Xref: sparky comp.unix.misc:3501 comp.unix.programmer:4533
  2. Path: sparky!uunet!mcsun!uknet!liv!qq11
  3. From: QQ11@LIVERPOOL.AC.UK (Alan Thew)
  4. Newsgroups: comp.unix.misc,comp.unix.programmer
  5. Subject: nawk/gawk and 8-bit ASCII
  6. Message-ID: <92248.104007QQ11@LIVERPOOL.AC.UK>
  7. Date: 4 Sep 92 09:40:07 GMT
  8. Organization: University of Liverpool
  9. Lines: 20
  10.  
  11. I have a program which needs to test for an 8-bit ASCII value. Neither
  12. nawk/gawk appear to support it (It's not in the documentation and it doesn't
  13. work :-)). I have a simple C program which can be used but to interact
  14. with the C program is problematic.
  15.  
  16. I can only see one way and I'm hoping that the awk experts out there can
  17. show a more efficient method.
  18.  
  19. My method:
  20.  
  21. (variable var8  has 8-bit ASCII in, check8 is the C program, check_out
  22. will have the signed decimal of the first char(s))
  23.  
  24. print var8 > temp_file
  25. "check8 < temp_file" | getline check_out
  26.  
  27. There must be a better way....
  28.  
  29. Thanks.
  30. Alan
  31.