Search:

Type: Posts; User: zhankal

Search: Search took 0.00 seconds.

  1. Replies
    12
    Views
    7,151

    Although I cared about that,still does not halt....

    Although I cared about that,still does not halt. Looks like infinite loop..
  2. Replies
    12
    Views
    7,151

    scanf with realloc

    I'm trying to get a string with unknown length and i used this weird code:



    int main()
    { char *ptr
    int l;

    ptr = (char *) malloc(sizeof(char *) * 10);
  3. Replies
    13
    Views
    8,854

    If i were you i would try double,if it does not...

    If i were you i would try double,if it does not enough to satisfied then maybe long double..
  4. Replies
    17
    Views
    33,027

    If you think so, you should develop your...

    If you think so, you should develop your mathematical & analytical skills.
  5. Replies
    17
    Views
    33,027

    +1 K&R is one of the best books which develop...

    +1
    K&R is one of the best books which develop you, of course if you practice what you read.
  6. Thread: getdelim()

    by zhankal
    Replies
    8
    Views
    5,415

    For just to get rid of this warnings, in what...

    For just to get rid of this warnings, in what else way can i read the string? (the problem is i need to care about whitespaces and i don't know the size of input)
  7. Thread: getdelim()

    by zhankal
    Replies
    8
    Views
    5,415

    #define _GNU_SOURCE #include #include...

    #define _GNU_SOURCE
    #include <stdio.h>
    #include <stdlib.h>



    int main()
    {
    int bytes_read;
    int nbytes = 100;
  8. Thread: getdelim()

    by zhankal
    Replies
    8
    Views
    5,415

    Well i tried to include it before including the...

    Well i tried to include it before including the stdio.h and I get this error , interesting

    error: pointer targets in passing argument 2 of ‘getdelim’ differ in signedness
  9. Thread: getdelim()

    by zhankal
    Replies
    8
    Views
    5,415

    Yeah, I'm trying to find that header file. I...

    Yeah, I'm trying to find that header file. I actually found some stuff like including #define _GNU_SOURCE ...but that didn't work.
  10. Thread: getdelim()

    by zhankal
    Replies
    8
    Views
    5,415

    getdelim()

    For a string problem, I tried to use getdelim function and I get this warning :

    warning: implicit declaration of function ‘getdelim’

    I guess it's a library problem although I have tried to...
  11. Replies
    7
    Views
    1,452

    I suggest you to check out this: Google...

    I suggest you to check out this:

    Google
  12. Replies
    21
    Views
    3,367

    As far as I know ANSI C does not allow such...

    As far as I know ANSI C does not allow such declerations.
Results 1 to 12 of 12