Poker Forum

Over 1,246,000 Posts!

Subscribe to FTR web feed
Already Registered?      Username:    Password:   Remember      Forgot Password
  >    > 

C programming, need help

  
 
LinkBack Thread Tools Display Modes
pokerfanatic
Old 10-24-2007, 12:54 AM     Post subject: C programming, need help #1 (permalink)  
pokerfanatic's Avatar
4-of-a-Kind

Join Date: Aug 2004
Location: 6max limit tables
Posts: 1,968
pokerfanatic
Send a message via AIM to pokerfanatic
Hey everyone, I was tossed a program by one of my instructors to write a cd command in a mini shell he had written for our operating systems class, and the mini shell run on a linux server...

the method chdir(filename) will "change the directory" and return 0 if successful and -1 if the directory isn't found, in the C library however i need to be able to change the prompt of the line to show you are now in the new directory and i need to have the damn thing stay in that directory until i cd again out of it.

so if anyone can help that would be freaking great!
“Dream as if you’ll live forever. Live as if you’ll die today.” ~ James Dean ~

"Poker is a lot like sex, peoples perceived ability usually blinds the truth" ~ me ~

"God bless him. Got to bet big to win big! GAMB00L!!!" ~ Fnord
 
Reply With Quote
Join the FTR Poker Forum to disable these banners and start posting!
|~|ypermegachi
Old 10-24-2007, 01:45 AM #2 (permalink)  
|~|ypermegachi's Avatar
4-of-a-Kind

Join Date: Aug 2004
Location: emo-kid
Posts: 3,580
|~|ypermegachi
http://www.opengroup.org/onlinepubs/...ons/chdir.html
http://www.opengroup.org/onlinepubs/...ns/getcwd.html
 
Reply With Quote
pokerfanatic
Old 10-24-2007, 01:55 AM #3 (permalink)  
pokerfanatic's Avatar
4-of-a-Kind

Join Date: Aug 2004
Location: 6max limit tables
Posts: 1,968
pokerfanatic
Send a message via AIM to pokerfanatic
you're the shit Hyper that should help thanks
“Dream as if you’ll live forever. Live as if you’ll die today.” ~ James Dean ~

"Poker is a lot like sex, peoples perceived ability usually blinds the truth" ~ me ~

"God bless him. Got to bet big to win big! GAMB00L!!!" ~ Fnord
 
Reply With Quote
kmind
Old 09-25-2010, 05:08 AM #4 (permalink)  
kmind's Avatar
Straight Flush

Join Date: Oct 2006
Location: Not Giving In
Posts: 4,240
kmind is on a distinguished road
pokerfanaticccccccccccccc
Reply With Quote
oskar
Old 09-25-2010, 10:47 AM #5 (permalink)  
oskar's Avatar
4-of-a-Kind

Join Date: Apr 2008
Location: in ur accounts... confiscating ur funz
Posts: 2,452
oskar has a spectacular aura aboutoskar has a spectacular aura aboutoskar has a spectacular aura about
idk if that helps, but you can get the name of the currend directory with pwd or basename... if you're using shell commands. idk how all that works for you
The strengh of a hero is defined by the weakness of his villains.
 
Reply With Quote
Reply
Latest Poker News
KoRnholio Old 05-26-2012, 03:08 PM    Australia Legalized Online Poker coming up in next 6 to 12 Months
According to an email sent out by Mark Bryan, a gaming analyst at Merrill Lynch, the Australian government plans to legalize online poker sometime in the next six to 12 months. This move will coincide ...

Thread Tools
Display Modes

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



All times are GMT. The time now is 08:38 PM.


FTR Testimonials

All content
© FlopTurnRiver.com
Advertising  |   Partners  |   Testimonials  |   T&C  |   Contact Us  |   FTR News & Press  |   Site Map  |   Search FTR

Full Tilt  |   Titan Poker  |   UltimateBet  |   Poker Stars  |   Ladbrokes Bonus  |   Sportsbook  |   Cake Poker  

Play Texas Holdem Online, Online Texas Holdem Strategy, & Poker Forum
This is not a gambling website.