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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6b4015030847e90a,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!h48g2000cwc.googlegroups.com!not-for-mail From: "Jade" Newsgroups: comp.lang.ada Subject: PSTR to Ada String. Date: 25 Oct 2006 13:50:13 -0700 Organization: http://groups.google.com Message-ID: <1161809413.511008.220720@h48g2000cwc.googlegroups.com> NNTP-Posting-Host: 209.29.50.252 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1161809419 5831 127.0.0.1 (25 Oct 2006 20:50:19 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 25 Oct 2006 20:50:19 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: h48g2000cwc.googlegroups.com; posting-host=209.29.50.252; posting-account=cGfZ6A0AAADiThp2Tk8usIOv1Wx0_xzX Xref: g2news2.google.com comp.lang.ada:7201 Date: 2006-10-25T13:50:13-07:00 List-Id: Hi I am using GNAT's ada bindings and with functions like gethostname, etc they choose to have a return value as a WIN32.PSTR. However, all my ada functions require either ada standard strings or characters. I was wondering if there is way of converting PSTR to an ada string. Thanks, Jade.