Thread: replacing line #include "file.c" with its contents

  1. #1
    Registered User
    Join Date
    Dec 2003

    Talking replacing line #include "file.c" with its contents

    pleas help!
    I need a code that its input is a c code that contains a line :
    #include "file.c" .
    its output is the contents of the file "file.c".
    thank you very much.

  2. #2
    King of the Internet Fahrenheit's Avatar
    Join Date
    Oct 2001
    You're welcome

  3. #3
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Xposted on another board
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. limits.h problem!!
    By guitarist809 in forum C++ Programming
    Replies: 21
    Last Post: 04-13-2006, 10:28 PM
  2. Multiple include problem
    By VirtualAce in forum Game Programming
    Replies: 13
    Last Post: 02-04-2006, 06:09 PM
  3. to #include or not to #include
    By krygen in forum C++ Programming
    Replies: 9
    Last Post: 12-25-2004, 12:06 AM
  4. Could somebody please help me with this C program
    By brett73 in forum C Programming
    Replies: 6
    Last Post: 11-25-2004, 02:19 AM
  5. Validating the contents of a char buffer
    By mattz in forum C Programming
    Replies: 3
    Last Post: 12-09-2001, 06:21 PM