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,212740d5951bd181 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-24 05:30:14 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!203.50.2.79!intgwlon.nntp.telstra.net!news-server.bigpond.net.au!not-for-mail From: Dale Stanbrough Newsgroups: comp.lang.ada Subject: Re: String handling??? Organization: RMIT References: <3B362243.EA4AA94E@ida.his.se> User-Agent: MT-NewsWatcher/3.1 (PPC) Message-ID: Date: Sun, 24 Jun 2001 12:30:12 GMT NNTP-Posting-Host: 144.132.94.47 X-Complaints-To: news@bigpond.net.au X-Trace: news-server.bigpond.net.au 993385812 144.132.94.47 (Sun, 24 Jun 2001 22:30:12 EST) NNTP-Posting-Date: Sun, 24 Jun 2001 22:30:12 EST Xref: archiver1.google.com comp.lang.ada:9069 Date: 2001-06-24T12:30:12+00:00 List-Id: Michael Andersson wrote: > Hi! > I'm currently trying to write a text file parser from my collage project > and I'm looking for some functions i Ada that works like the sprint > function in C. Is there such a function? > The thing is that I want to extract numbers from a string and I don't > know how. You can achieve some of this by using the put routines, with a string as the first parameter, rather than a file. All the usual caveats for dealing with Ada strings remain, such as constantly remebering where you are up to when appending new values. Dale