Thread: copy strings in array

  1. #16
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    So you can do either
    Code:
    void addchars(char sa[128][25])
    or
    Code:
    void addchars(char (*sa)[25])
    at your convenience.

  2. #17
    Registered User
    Join Date
    Jan 2009
    Posts
    61
    thankyou,

    it seems like i need a mega c tutorial rehash on pointers and arrays!

    thanks for your time.

  3. #18
    Registered User
    Join Date
    Dec 2008
    Posts
    104
    it looks like you need to learn to differentiate between pointers and arrays, since they can be very similar but very different at the same time.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Swapping strings in an array of strings
    By dannyzimbabwe in forum C Programming
    Replies: 3
    Last Post: 03-03-2009, 11:28 AM
  2. Array of strings and memory allocation
    By maluyk in forum C Programming
    Replies: 7
    Last Post: 01-26-2009, 10:52 AM
  3. Passing an Array of Strings from VB to a C DLL
    By mr_nice! in forum Windows Programming
    Replies: 9
    Last Post: 03-08-2005, 05:16 AM
  4. Struct *** initialization
    By Saravanan in forum C Programming
    Replies: 20
    Last Post: 10-09-2003, 12:04 PM
  5. Hi, could someone help me with arrays?
    By goodn in forum C Programming
    Replies: 20
    Last Post: 10-18-2001, 09:48 AM