Index: [thread] [date] [subject] [author]
  From: Janel Baskerville <jlb18@acpub.duke.edu>
  To  : 
  Date: Sun, 31 Jan 1999 17:53:08 -0500

Re: learning some new tricks....

But we can't use CPstring for atoi which takes a string and changes them into an
int, but stdlib.h's atoi takes a const char *. So what do I do??

Luke Palmer wrote:

> since we are all used to using all the tapestry stuff and learning about c
> strings is next week, it's kinda hard for most of us to use things like atoi
> that require c strings.  we have been kinda hidden from all this stuff
> through previous classes....   to figure out how atoi and other things work,
> look at the Astrachan source code.  i put it up on my computer at
>
> http://mp3.dorm.duke.edu/tapestry
>
> the way i got atoi to work (the way astrachan does it) is this:
> atoi(anystring.c_str())
>
> good luck guys
> -luke

vcard.vcf


Index: [thread] [date] [subject] [author]