TIP: Click on subject to list as thread! ANSI
echo: locsysop
to: All
from: Bob Lawrence
date: 1994-05-28 08:17:26
subject: C

Hello All,
           okay, I give up!

  How the bloody hell do I read part of a string in C?

  I've got 3:711/934.12 and I want to read the 711. How do I do it?

  In Pascal I'd use COPY("3:711/934.12",3,3); but how do you pick a
string out of a string in C?

  I should explain that I haven't used Pascal for five years, and it
took me two minutes to find the right command. I've been arsing around
with C all day! And no closer than when I started.

  Is there any way, other than using a loop and building a new string
character by character? I can't believe it's that clumsy. Help!

Regards,
Bob

___ Blue Wave/QWK v2.12

--- PQWK202
* Origin: Precision Nonsense, Sydney (3:711/934.12)
SEEN-BY: 711/934
@PATH: 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.