Select Page
Poker Forum
Over 1,292,000 Posts!
Poker ForumFTR Community

C programming, need help

Results 1 to 5 of 5
  1. #1
    pokerfanatic's Avatar
    Join Date
    Aug 2004
    Posts
    1,793
    Location
    6max limit tables

    Default C programming, need help

    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
  2. #2
  3. #3
    pokerfanatic's Avatar
    Join Date
    Aug 2004
    Posts
    1,793
    Location
    6max limit tables
    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
  4. #4
    kmind's Avatar
    Join Date
    Oct 2006
    Posts
    5,612
    Location
    Not Giving In
    pokerfanaticccccccccccccc
  5. #5
    oskar's Avatar
    Join Date
    Apr 2008
    Posts
    7,019
    Location
    in ur accounts... confiscating ur funz
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •