Search:

Type: Posts; User: ExtremelyStupid

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    780

    Confused with Sprintf

    Ok this might seem kinda a small problem but why can't I do this?

    char *temp="Hello";
    char *temp2;
    sprintf(temp2, "%sWorld, temp);
  2. Replies
    4
    Views
    1,238

    Variable String Arguments

    Ok here is the problem I need to sent to a function a number for example 2. This is the amount of strings I wish to enter into an array of a struct.

    The struct for example may have 3 char* like...
  3. Replies
    10
    Views
    1,854

    How come on this page...

    How come on this page http://ccrma.stanford.edu/planetccrma/man/man3/stdarg.3.html

    The author can use while(*fmt)?
  4. Replies
    10
    Views
    1,854

    I thought at the end of the list it would...

    I thought at the end of the list it would automatically equal NULL.
  5. Replies
    10
    Views
    1,854

    Err I changed some of my original program so that...

    Err I changed some of my original program so that my code wouldn't take up the whole page. It was suppose to be taken out. Also thank you. It works :)!. If anyone can figure out a way to not have...
  6. Replies
    10
    Views
    1,854

    Stdarg :(

    Ok here is my problem:

    I have a bunch of strings like this:

    unsigned char hello[]="hello";
    unsigned char goodbye[]="goodbye";

    Now I have a struct with different values in it:

    typedef...
  7. Replies
    5
    Views
    1,454

    This is part of a game engine for another...

    This is part of a game engine for another platform. Its gonna be open source so I don't want people to have to pass in pointers. Its not for me to use. This is not the exact code but it shows what...
  8. Replies
    5
    Views
    1,454

    Err typo. I fixed it in my original program...

    Err typo. I fixed it in my original program still same result. It was suppose to be Data numbers;
  9. Replies
    5
    Views
    1,454

    Global variables sent to a function

    Ok I wanna create a program that displays some numbers. I don't wanna use pointers for a reason but its kinda complicated. Anyway heres my code can anyone tell me a way to make it work?

    Working...
  10. Something more like this: int x1=5,x2=3,x3=4,...

    Something more like this:

    int x1=5,x2=3,x3=4,
    char nameofint[3];
    printf("Enter name of integer\n");
    gets(nameofint);
    int uselessint;

    uselesss=nameofint;.//I want uselessint to equal 5 if...
  11. Err ok let me try to explain it better: I have...

    Err ok let me try to explain it better:

    I have lets say 3 integers.

    int x1;
    int x2;
    int x3;

    Now I have a string. Lets call this string nameofint:
  12. I dont even know how to ask this question :(. Array and strings?

    Ok I have an array but I need to get a char array and make it actually equal the name of the array and use it accordingly. For example.

    int hello[3];

    char nameofarray[]="hello";

    I want it...
Results 1 to 12 of 12