Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Quick C question

Name: Anonymous 2008-02-29 18:26

After googling around I didn't really find an answer for my question.

Programming in C, I have a file with a random amount of positive numbers in it.

Example:
5 3 85 23 9 54

How exactly can I scan the file for the amount of numbers in it. So scanning that file would return 6.

Name: Anonymous 2008-02-29 20:10

I tried it, but your full of fail:


$ catfile | wc -w
-bash: catfile: command not found
       0
$ catnumbers.txt | wc -w
-bash: catnumbers.txt: command not found
       0
$


Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List