C code question

Do you have a technical question that doesn't really fit a specific console? Want some general info on electronics, hacking, making cookies, etc? Here's the place to ask! Go nuts.

Moderator: Moderators

Post Reply
totokan
Senior Member
Posts: 1785
Joined: Wed May 18, 2005 12:29 pm
Location: 127.0.0.1
Contact:

C code question

Post by totokan »

I'm trying to create a program in regular C that goes through an input file, finds all the lines that fulfill a command, and outputs the number of said fulfillments. I've tried using scanf(), but it is overly complicated for what seems to be a simple task. The example is a line like this:
13:27:05.194554 IP 128.238.55.12.58198 > 171.64.75.169.8431:
and I need to find how many source (left) ip's in a large file have 128.238.x.y and the last byte odd.
Shhh! I'm not officially back yet.
Post Reply