Search:

Type: Posts; User: flegmik

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    1,541

    qsort Comparator

    Hi, i would like to sort an array of object by their atribute, this is my testing project, the biggest problem is in compare function

    Thanks for help



    #include <iostream>
    #include...
  2. Replies
    3
    Views
    1,712

    Thanks, so if I understood it clearly what it...

    Thanks, so if I understood it clearly what it does, so for example file has rights set octal 0777 so owner,group,other can read,write,execute after info.st_mode ^= S_IROTH; it will do 0777- 4 =...
  3. Replies
    3
    Views
    1,712

    chmod() how to take S_IROTH away

    I would like to ask you how to take away S_IROTH right from the file, I havent found it anywhere... my solution just changes rights for the file without giving it the S_IROTH, our teacher said to me...
  4. deleteList will delete the first list in my...

    deleteList will delete the first list in my linked list.
    it works like this-> I get some way to some file like /home/xnovak/directory/ and I am supposed to write all files which are readable for...
  5. Because if the condition is true I am returning...

    Because if the condition is true I am returning value immidiatelly so before that I freeing my pointer, and if the condition were both false so I have to free the pointer or he will be forgotten.
    I...
  6. Address is 0 bytes inside a block of size 16 free'd

    Hi, I have some memory issues, somehow I am freeing already freed memory but I really cant find it after staring at it for quite long while, valgrind is writing sth like this... btw program works how...
  7. stat() -> how to find out if file has S_IROTH

    Thats my program which is doing BFS(for that purpose i am using single linked list instead of FIFO) on directories, and is writing all files it found. I would like to ask you how to find out if the...
  8. Replies
    4
    Views
    1,297

    yeah thanks. i have one lame question... if I...

    yeah thanks. i have one lame question... if I have buffer, lets say

    char* buffer = "this is my sentence";
    char* sth = buffer;
    *(sth+5) = '\0';
    free(buffer);
    ...
  9. Replies
    4
    Views
    1,297

    Havent found anything to edit my previous post ...

    Havent found anything to edit my previous post

    So I wanna allocate memory insade the structere, I wanna allocate it for SQLtable* table in SQLresult->data->table

    Any Ideas how to allocate...
  10. Replies
    4
    Views
    1,297

    *void allocating

    Hi, firstly I forgot to thank you in some thread about allocating the struct... So I thank everyone who helped me improve my code...
    It will be very similiar right now, cause my program have to run...
  11. Replies
    7
    Views
    1,369

    I did what u said, but still undefined referes...

    I did what u said, but still undefined referes in fprintf ... any ideas?
    The whole code looks like this.
    I am quite new at dinamic allocations so I made those midle steps to have less problems...
  12. Replies
    7
    Views
    1,369

    Function with struct pointer

    So the problem is foo function where I should take person atributes do some changes with them and rewrite them to another file but fprintf function have some problem with p_person->name if anybody...
  13. Replies
    4
    Views
    1,361

    Yeah, you were right, it was pretty lame mistake...

    Yeah, you were right, it was pretty lame mistake :/,thank you for hel... Now I have some pointers troubles.


    #include <stdio.h>#include <stdlib.h>
    #include <string.h>
    char* whereIsTheFile;

    ...
  14. Replies
    4
    Views
    1,361

    Emulating the Sql parser (char* problems)

    Hi, I have a problem with char pointers and I would like to ask you why :)


    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    char* whereIsTheFile;

    void SQLquer(const char* query){...
Results 1 to 14 of 14