Resetting a character Array

This is a discussion on Resetting a character Array within the C Programming forums, part of the General Programming Boards category; Hi. How do you reset a character array in order to read a file into a program using that array ...

  1. #1
    Unregistered
    Guest

    Resetting a character Array

    Hi.
    How do you reset a character array in order to read a file into a program using that array multiple times in one loop?

  2. #2
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    What do you mean with resetting a character array?

  3. #3
    Code Warrior
    Join Date
    Nov 2001
    Posts
    669

    Thumbs up

    Use the memset function to reset the array.
    Current projects:
    1) User Interface Development Kit (C++)
    2) HTML SDK (C++)
    3) Classes (C++)
    4) INI Editor (Delphi)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Character Array comparison
    By magda3227 in forum C Programming
    Replies: 7
    Last Post: 07-09-2008, 08:36 AM
  2. Replies: 7
    Last Post: 05-11-2008, 10:57 AM
  3. pointers
    By InvariantLoop in forum C Programming
    Replies: 13
    Last Post: 02-04-2005, 08:32 AM
  4. two dimensional character array
    By feuerraeder in forum C Programming
    Replies: 4
    Last Post: 11-22-2002, 07:59 AM
  5. Array of Character Arrays
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 02-09-2002, 05:07 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21