copy strings in array

This is a discussion on copy strings in array within the C Programming forums, part of the General Programming Boards category; So you can do either Code: void addchars(char sa[128][25]) or Code: void addchars(char (*sa)[25]) at your convenience....

  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.

Page 2 of 2 FirstFirst 12
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, 12:28 PM
  2. Array of strings and memory allocation
    By maluyk in forum C Programming
    Replies: 7
    Last Post: 01-26-2009, 11: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, 06:16 AM
  4. Struct *** initialization
    By Saravanan in forum C Programming
    Replies: 20
    Last Post: 10-09-2003, 01:04 PM
  5. Hi, could someone help me with arrays?
    By goodn in forum C Programming
    Replies: 20
    Last Post: 10-18-2001, 10:48 AM

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