comp.lang.ada
 help / color / mirror / Atom feed
From: u5ral@csc.liv.ac.uk (R.A. Lawrence)
Subject: Heeeeeeeeelp!!!!
Date: 1996/03/21
Date: 1996-03-21T00:00:00+00:00	[thread overview]
Message-ID: <DoMrqC.18J@csc.liv.ac.uk> (raw)

Right - a couple of easy peasy questions for you ada gurus out there:

Im rewriting an old program of mine to be used at university. Every Unix
machine has a user id number which can be easily found to which i want to
write a program called `xtwhere` which tells you which lab that computer
with that id number is located.

(1) I want people to be able to type:

xtwhere <machine_id>

to which it runs the program `xtwhere`. How can i find out what the
<machine_id> written was? - an example of this might be

xtwhere xt027

(2) I need to split this <machine_id> into two parts - a text bit (the
`xt`) and the number bit (the '027') - If the answer to (1) returns a
string how can i convert a string into a number?

Please could you mail any suggestions/answers to me as i dont regulary use
this newsgroup.

Regards

Rich.

--

       ___   ___
===   /___\ /___\  ========================================================
     |   o |   o |                                         Richard Lawrence
      \___/ \___/                            Department of Computer Science
         /   \                                  The University of Liverpool
    \___|     |___/         EMAIL: u5ral@csc.liv.ac.uk / cs0u5110@liv.ac.uk
     \   \___/   /                WEB SITE: http://www.csc.liv.ac.uk/~u5ral
===   \_________/ =========================================================




             reply	other threads:[~1996-03-21  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-03-21  0:00 R.A. Lawrence [this message]
1996-03-22  0:00 ` Heeeeeeeeelp!!!! Paul Whittington
replies disabled

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