From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2151e8951b93233f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-23 06:34:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!blackbush.xlink.net!blackbush.de.kpnqwest.net!news.erfurt.thur.de!drcomp.erfurt.thur.de!not-for-mail From: Adrian Knoth Newsgroups: comp.lang.ada Subject: Re: Put_Line for chars_ptr Date: 23 Jun 2002 13:09:21 GMT Organization: Modern Electronics Message-ID: References: NNTP-Posting-Host: drcomp.erfurt.thur.de X-Server-Date: 23 Jun 2002 13:09:21 GMT User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:26625 Date: 2002-06-23T13:09:21+00:00 List-Id: Sergey Koshcheyev wrote: >> I have a record (struct) for interfacing uname(). The record looks like >> type myStruct is record >> sysname : chars_ptr; > I've just looked at the uname man page, and the structure looks like this: > struct utsname { > char sysname[SYS_NMLN]; Oh, thanks a lot. My info-page seems to be wrong on this, they call it an unbounded char-array, that's why I thought they provide a pointer to the first character and do the usual stuff like null-terminated strings. > sysname : char_array (1 .. SYS_NMLN); It works fine now, thanks. -- mail: adi@thur.de http://adi.thur.de PGP: v2-key via keyserver Macht der PC was er will, liegts an Bill!