comp.lang.ada
 help / color / mirror / Atom feed
From: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Subject: Put_Line for chars_ptr
Date: 22 Jun 2002 23:11:13 GMT
Date: 2002-06-22T23:11:13+00:00	[thread overview]
Message-ID: <slrnaha10h.102.adi@drcomp.erfurt.thur.de> (raw)

Hi!

I have a record (struct) for interfacing uname(). The record looks like

type myStruct is record
  sysname : chars_ptr;
  nodename: chars_ptr;
  release : chars_ptr;
  version : chars_ptr;
  machine : chars_ptr;
end record;

I guess Pragma Import works well, but if I try to output the content
via Value(varname.sysname) & ... &... it cannot handle a null-pointer
(raise Dereference-Error).

Is this the wrong approach?

-- 
mail: adi@thur.de  	http://adi.thur.de	PGP: v2-key via keyserver

Jeder redet vom �ffentlichen Verkehr, aber keiner traut sich!



             reply	other threads:[~2002-06-22 23:11 UTC|newest]

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

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