Search:

Type: Posts; User: szill

Search: Search took 0.00 seconds.

  1. Replies
    10
    Views
    153,115

    [QUOTE=itsme86]You could do something like this...

    [QUOTE=itsme86]You could do something like this easily enough:


    itsme@dreams:~/C$ cat strtype.c
    #include <stdio.h>

    typedef char * string;

    int main(void)
    {
  2. Replies
    10
    Views
    153,115

    Thanks, i will give it a go. Is there a way to...

    Thanks, i will give it a go. Is there a way to define a string as a typedef, and delcare variables as type string?

    please advise.

    thanks.

    szill
  3. Replies
    10
    Views
    153,115

    I know they are confusing, that's why I asked for...

    I know they are confusing, that's why I asked for help. :)

    I searched the boards, they weren't helpful for what I am doing. Could you please post how to define an array of strings, and how to...
  4. Replies
    10
    Views
    153,115

    Array of strings in C

    What is the proper way to program an array of strings in C (not C++)?

    I have a list of first names and I want to store them in an array. A string is an array of chars, so is an array of strings...
Results 1 to 4 of 4