Tilted Forum Project - TFP - Sexuality, Philosophy and Political Discussion

Go Back   Tilted Forum Project - TFP - Sexuality, Philosophy and Political Discussion > Interests > Tilted Technology

Reply
 
LinkBack Thread Tools
Old 02-28-2004, 12:05 PM   #1 (permalink)
Crazy
 
Join Date: May 2003
Location: Nova Scotia, Canada
[C] Fscanf Question

I'm having some troubles with what I think are called scansets.
This kind of stuff:
Code:
fscanf(fp, " %*[^0-9]%i %i/%i", &a, &b, &c);
So it ignores anything that's scanned in untill it sees a number.
That's all good, but I don't seem capable enough to get it to work with minuses as well (for a negative number.)

It would be great if someone could give me a hand, or maybe even write a little tutorial covering scansets (so maybe I could actually learn something.)

Thanks!
__________________
Ask a simple question... get pain.
Marburg is offline   Reply With Quote
Reply

Bookmarks

Tags
fscanf, question

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -7. The time now is 06:42 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
All text (c) 2002-2008 Tilted Forum Project
"Insignia" vBulletin 3.5 - b6gm6n - x7x7x7.com