I received alot of responces from my first post on
comp.lang.c -but-
Is there an ftp site where I get docs that talk about the str
functions??? I am hesitating to purchance anything - afterall
I don't understand what is going on (yet).
scorecard for 5 mailed programs sent to me:
NeXT Vax
cc vcc (ansi)
=================================
prog 1 ok | ok
prog 2 bus error | ok
prog 3 bus error | ok
prog 4 no compile | no compile
prog 5 ok | runtime error
notes:
program 2 and program 3 are mysteries to me
program 4 used the function strdup which is not supported on
the NeXT or Vax as far as I know.
program 5 had a few typo's that I fixed which may have
resulted in the program working in one environment and not
another.
##### SAMPLE
Here is the 3rd program which didn't work on the NeXT, but did work
on the Vax.
#include <string.h>
main()
{
char *p;
p = strtok("The summer soldier, the sunshine patriot", " ");
printf(p);
do {
p = strtok('\0', ", ");
if (p) printf("|%s", p);
} while(p);
--Quote:}
Eli Burk Where were you?
P.O. Box 22135 --If I told you, you wouldn't understand...
San Francisco, CA 94122 (quizzical look)
--I was trapped near the inner circle of fault.
email & NeXT mail: I don't understand.
Life"*