comp.lang.ada
 help / color / mirror / Atom feed
From: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Subject: Re: Put_Line for chars_ptr
Date: 23 Jun 2002 13:09:21 GMT
Date: 2002-06-23T13:09:21+00:00	[thread overview]
Message-ID: <slrnahbi41.evo.adi@drcomp.erfurt.thur.de> (raw)
In-Reply-To: af4d2n$1c52$1@ns.felk.cvut.cz

Sergey Koshcheyev <serko84@hotmail.com> 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!



      reply	other threads:[~2002-06-23 13:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-22 23:11 Put_Line for chars_ptr Adrian Knoth
2002-06-23  2:13 ` tmoran
2002-06-23  9:20   ` Adrian Knoth
2002-06-23 11:57 ` Sergey Koshcheyev
2002-06-23 13:09   ` Adrian Knoth [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox