home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / fortran / 4349 < prev    next >
Encoding:
Text File  |  1992-11-18  |  897 b   |  37 lines

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!nih-csl.dcrt.nih.gov!FAXCSL!PLUGGE
  3. From: plugge@faxcsl.dcrt.nih.gov
  4. Subject: FORTRAN character strings
  5. Message-ID: <1992Nov18.155753.20537@alw.nih.gov>
  6. Sender: postman@alw.nih.gov (AMDS Postmaster)
  7. Reply-To: plugge@faxcsl.dcrt.nih.gov
  8. Organization: Computer Systems Laboratory, DCRT, NIH
  9. Date: Wed, 18 Nov 1992 15:57:53 GMT
  10. Lines: 25
  11.  
  12.     How gross is the following STRING structure.  I'd like to
  13.     develop some string functions are a structure.  Should I 
  14.     stick with ASCIZ or a character string and length format
  15.     instead of the following -
  16.  
  17.     Integer        Charlength
  18.     Parameter    (CharLength=132)
  19.  
  20.     Structure    /String_Type/
  21.  
  22.       Union
  23.         Map
  24.           Character*(CharLength)    Char
  25.         End Map
  26.         Map
  27.           Byte            Byte(CharLength)
  28.         End Map
  29.       End Union
  30.       Integer            Length
  31.  
  32.     End Structure
  33.  
  34.  
  35.                                 Thanks for the input,
  36.                 Don
  37.