Search:

Type: Posts; User: surlyTomato

Search: Search took 0.00 seconds.

  1. All fixed, thanks. Most of my problems were...

    All fixed, thanks.
    Most of my problems were coming from an odd order of declaration thing (which I have yet to fix, but that's another problem).

    If anyone has any idea...
    Here


    void...
  2. If I comment the blah line out, it's fine. --...

    If I comment the blah line out, it's fine. -- [edit: this part is fixed]

    Also, I'm sorry, but I don't see what you mean by "you do not get a string free with every struct", since Data is filled by...
  3. And, as an aside, if I do this ...

    And, as an aside, if I do this


    unsigned char *DataC;
    int diggity;
    //int *Xsz;

    if(strcmp(methode,"plusproche")==0){
    printf("refcam: %s, x: %d y: %d z:%d \n\n",refCam,x,y,z_d);...
  4. The img.h file is also included in img.c The...

    The img.h file is also included in img.c
    The file that calls LoadImage is like this now


    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>

    #include "fonctionsCommandes.h"
    #include...
  5. Now it says error: ‘imginfo’ undeclared (first...

    Now it says
    error: ‘imginfo’ undeclared (first use in this function)

    imginfo is declared in img.h and I have a #include img.h in the file with the main.
    LoadImage (included in img.c), which is...
  6. error: dereferencing pointer to incomplete type

    Hi,

    I get the error above and I'm not sure why.
    I have a file img.h (which I didn't write and have to use), in which I have


    typedef struct{
    int XSize, YSize;
    int...
  7. Replies
    5
    Views
    2,306

    Hi, and thanks. That's what I was thinking...

    Hi,
    and thanks.
    That's what I was thinking too, but it seemed a bit un-elegant and repetitive. I was wondering if there was a way of "translating" the string "command1" into command1() directly,...
  8. Replies
    5
    Views
    2,306

    read a file of commands and execute them

    Hi all,

    I have read the FAQ on running a program from within a program, but I don't think that that's my answer. From google, I only got C++ stuff.
    I'd appreciate any input, or ideas on where to...
  9. Replies
    6
    Views
    6,051

    Ah crap, thanks. I'll say it was 3 a.m. and use...

    Ah crap, thanks. I'll say it was 3 a.m. and use that as my excuse.
  10. Replies
    6
    Views
    6,051

    I'm not sure how stupid of a question this is,...

    I'm not sure how stupid of a question this is, but here goes:

    My code is now this:



    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
  11. Replies
    6
    Views
    6,051

    That was it, thanks a lot.

    That was it, thanks a lot.
  12. Replies
    6
    Views
    6,051

    Oh, and the second part was this: ...

    Oh, and the second part was this:


    for(i=0;i<sizeof(removedComments);i++){
    //for(i=0;i<5;i++){
    printf("^ removedComments \"%s\"\n", removedComments[i]);
    word =...
  13. Replies
    6
    Views
    6,051

    fgets() and strtok()

    Hi all,

    I'm trying to read a file, remove the comments (lines starting with a #) and store the values. I haven't done any C in a while, so please bear with me.
    I have read a bit from searching...
Results 1 to 13 of 13