Thread: Error when I run an EXE file

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User WayTooHigh's Avatar
    Join Date
    Aug 2001
    Posts
    101
    Ive tried it with {'\n'} (That would null terminate it, correct?) also, but it didn't change anything
    actually, {'\0'}, will null it. '\n' is a new line.

    oh and i'd declare it like this

    char command[256]=""; anything contained in quotes is automatically ended with null. therefore, since nothing is in quote the char at command[0] equals '\0', the null character.
    Last edited by WayTooHigh; 03-25-2002 at 06:05 PM.
    Sometimes, the farthest point from the center is the center itself.

    Your life is your canvas, it's only as beautiful as you paint it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. opening empty file causes access violation
    By trevordunstan in forum C Programming
    Replies: 10
    Last Post: 10-21-2008, 11:19 PM
  2. Inventory records
    By jsbeckton in forum C Programming
    Replies: 23
    Last Post: 06-28-2007, 04:14 AM
  3. Basic text file encoder
    By Abda92 in forum C Programming
    Replies: 15
    Last Post: 05-22-2007, 01:19 PM
  4. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 10:12 PM