Search:

Type: Posts; User: swagatob

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    15
    Views
    6,057

    nah that doesnt solve it..... thanks mate anyway

    nah that doesnt solve it..... thanks mate anyway
  2. Replies
    15
    Views
    6,057

    well how to solve the problem :) Why am I getting...

    well how to solve the problem :) Why am I getting FILE OPEN ERROr? filenames I am testing on are very small.... "lao" "tzu" "dir"
  3. Replies
    15
    Views
    6,057

    back to sqaure 1. char *a=argv[2]; ...

    back to sqaure 1.




    char *a=argv[2];
    char *b=argv[3];
    char buf[20];
    sprintf(buf, "%s/%s", a, b);
    char buf2[20];
  4. Replies
    15
    Views
    6,057

    Could you be a little more specific? I am...

    Could you be a little more specific? I am guessing you are stating that buf needs to have a \0 at the end like a string.....

    how can i do that? Can you give me a small code of it?

    thanks
    ...
  5. Replies
    15
    Views
    6,057

    char *buf; if(instream2==NULL){ ...

    char *buf;

    if(instream2==NULL){
    strcat( buf, a);
    strcat( buf, "/" );
    strcat( buf, b );
    instream2=fopen(buf,"r");
    }
  6. Replies
    15
    Views
    6,057

    unix OS

    I am using UNIX. Yes it is assumed that there is only one file inside the directory. And it is assumed that the file name inside the directory is the same as the filename of the other argument. WHat...
  7. Replies
    15
    Views
    6,057

    Open files inside directory (UNIX platform)

    I need to open a file inside a directory. I am writting this utility that takes two inputs : from-file to-fileIf from-file is a directory and to-file is not, the utility compares the file in ...
  8. Thread: opening files

    by swagatob
    Replies
    3
    Views
    2,115

    you can open one file after another.... using...

    you can open one file after another.... using fopen....

    but you will possibly have to close the files after done
  9. Thread: Problem in c

    by swagatob
    Replies
    1
    Views
    886

    I think you can use .NET unless you are using...

    I think you can use .NET unless you are using UNIX. Then, you will possibly have to use some middleware technology... But I am not so sure. I am sure you can use .NET libraries to connect to excel to...
  10. Replies
    2
    Views
    1,080

    Line1: Foo bar baz line2: foo bar baz are not...

    Line1: Foo bar baz
    line2: foo bar baz
    are not identical...
  11. Replies
    2
    Views
    1,080

    Please please please help

    I am trying to compare two files and find the unique lines. The lines can be of different length, and the files can be of different length. I have to use Doubled Linked List. And I cant use unix...
  12. Replies
    7
    Views
    1,124

    /*structure of the double linked list*/ struct...

    /*structure of the double linked list*/
    struct NODE2
    {
    struct NODE2 *pNext;
    struct NODE2 *pPrev;
    char* nData;
    }*pHead, *pTail, *pNode, *pHead3,*pTail3,*pNode3;
  13. Replies
    7
    Views
    1,124

    char *newlinetest=malloc(100*sizeof(char)); ...

    char *newlinetest=malloc(100*sizeof(char));
    strcpy(newlinetest,"\n");

    this is my newline test



    void adddll3(char *ch2)
    {
    pNode3 = malloc (sizeof (struct NODE2));
  14. Replies
    7
    Views
    1,124

    pelase help me... I am desperate.... thnks

    pelase help me... I am desperate.... thnks
  15. Replies
    7
    Views
    1,124

    looping problem

    Ok.very weird problem. Thanks to whoever can helpme here.

    I have these double linked lists defined properly and working fine. I call them "pNode", and "pNode3".

    The data inside pNode contains...
  16. Replies
    9
    Views
    7,313

    for 2 maybe use long rather than int... I am not...

    for 2 maybe use long rather than int... I am not sure though.....
  17. Replies
    9
    Views
    7,313

    while((num != 0) && (num !=1)){ printf("\n...

    while((num != 0) && (num !=1)){
    printf("\n please print 0 or 1 :");
    scanf("%d",&num);
    }

    as you can see that I am a newbee too :p

    EDIT: while loop changed.. it possibly should be and...
  18. Replies
    15
    Views
    2,261

    try "gcc -Wall -ansi filename.c" to display all...

    try "gcc -Wall -ansi filename.c"
    to display all warnings

    EDIT: i.e if you are using UNIX
  19. Replies
    9
    Views
    7,313

    please use .... :) thnks

    please use
    .... :) thnks
  20. Replies
    9
    Views
    7,313

    your binary is my num

    your binary is my num
  21. Replies
    9
    Views
    7,313

    answ to 1 (i Think. I am a newbie too.. so :) ) ...

    answ to 1 (i Think. I am a newbie too.. so :) )



    int num;
    scanf("%d", &num);
    while((num != 0) || (num !=1)){
    printf("\n please print 0 or 1 :");
    scanf("%d",&num);
    }
  22. Replies
    8
    Views
    1,234

    oh yeah... it should be double quotes "" you...

    oh yeah... it should be double quotes ""

    you know I am so tired.... that I am making more mistakes with time now.. damn
  23. Replies
    8
    Views
    1,234

    yeep fixed thanks all again. you guys are...

    yeep fixed thanks all again. you guys are wonderful


    char *newlinetest=malloc(100*sizeof(char));
    strcpy(newlinetest,'\n');
  24. Replies
    8
    Views
    1,234

    hi I used something llike this.. gives me...

    hi
    I used something llike this.. gives me SIGSEV, out of bound error



    char *newlinetest=malloc(sizeof(4));
    newlinetest='\n';
  25. Replies
    8
    Views
    1,234

    make a char* which will hold newline

    I want to copy '\n' (i.e a newline) into a
    char *src
    (i.e to a pointer to a character). The apparent use will be to chcek this string with other strings I have for newlines. I need to keep it...
Results 1 to 25 of 31
Page 1 of 2 1 2