Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-18-2003, 02:23 AM   #1
iroc409
Confirmed User
 
Join Date: Jan 2003
Location: midwest side, yo
Posts: 4,728
for the programmers in da hizzouse...

got a quick question...

ok, i'm reading from a file, and if the first character in the file is a backslash (\), i need to tell it to go to the next *line* of the document, not next character. i can increment the pointer, but that just goes to the next character. anyone?

also, if i have a pointer FILE *fp; can i use 'fp--' to decrement the pointer, go backwards through characters, or does that not work?

thanks
__________________
<a href="http://www.iroc409.com/"><img src="http://www.iroc409.com/adv/120x60.gif" border=0></a>


icq: 1 7 6 4 2 0 9 6 0
Gallery templates for ONLY $25! w00t!
iroc409 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2003, 03:03 AM   #2
SilverTab
Confirmed User
 
Join Date: Nov 2001
Location: MTL
Posts: 5,060
You can't use -- to decrement a pointer...a pointer is just an integer representing an address in your memory...if you decrement it, you'll get some fucked up results....
__________________
mmm my sig was too big... no more cool animation
but hey still! need php? ICQ: 94586959
SilverTab is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2003, 03:07 AM   #3
iroc409
Confirmed User
 
Join Date: Jan 2003
Location: midwest side, yo
Posts: 4,728
fuck... so how do i go backwards then? gonna have to find a way around that. i need to search text for a specific patter of 8 characters. but if i go through it, the pointer will be past it to replace, so i'd have to go backwards or something.... it's either that or use an array to store the file, but that uses a bunch of memory, there's got to be a way around that...

it's been too long since i've done this stuff

oh yeah, i just pulled the comments out of the file, fuck it. i can put those in the readme.
__________________
<a href="http://www.iroc409.com/"><img src="http://www.iroc409.com/adv/120x60.gif" border=0></a>


icq: 1 7 6 4 2 0 9 6 0
Gallery templates for ONLY $25! w00t!

Last edited by iroc409; 01-18-2003 at 03:08 AM..
iroc409 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2003, 03:15 AM   #4
iroc409
Confirmed User
 
Join Date: Jan 2003
Location: midwest side, yo
Posts: 4,728
fucking microsnot...

the compiler says the program runs, but then it dies in xp. if the program doesn't work, then it shouldn't let it run.

no errors or warnings, according to visual studio...
__________________
<a href="http://www.iroc409.com/"><img src="http://www.iroc409.com/adv/120x60.gif" border=0></a>


icq: 1 7 6 4 2 0 9 6 0
Gallery templates for ONLY $25! w00t!
iroc409 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.