comp.lang.ada
 help / color / mirror / Atom feed
* Put_Line for chars_ptr
@ 2002-06-22 23:11 Adrian Knoth
  2002-06-23  2:13 ` tmoran
  2002-06-23 11:57 ` Sergey Koshcheyev
  0 siblings, 2 replies; 5+ messages in thread
From: Adrian Knoth @ 2002-06-22 23:11 UTC (permalink / 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!



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-06-23 13:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox