Search:

Type: Posts; User: soothsayer

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    2,116

    What's ldconfig and how to check if i were...

    What's ldconfig and how to check if i were running it or not ?

    Thanks.
  2. Replies
    3
    Views
    2,116

    Problem with custom shared library

    Hi,
    I created a shared Library called libTree.so to be used with a program called Insert.
    When doing it in a Mandrake 10 machine (2.6.3-7mkd, i686) , everything works fine
    The problem occured...
  3. Replies
    2
    Views
    1,106

    Confused with a make file

    Hi,
    I got a following Make file. Could anyone give me a hint of what
    COMPILEDIRS = $(SUBDIRS:=.compile)

    means ? Does it replace all subdirs with .compile ???


    Many thanks.
    Anh
  4. Replies
    5
    Views
    23,059

    Here's the begining of the source code (all...

    Here's the begining of the source code (all include and define):


    #include <stdio.h>
    #include <sys/types.h>
    #include <sys/socket.h>
    #include <netinet/in.h>
    #include <netdb.h>
    #include...
  5. Replies
    5
    Views
    23,059

    i did include both and ...

    i did include both <string.h> and <strings.h>
    But still no help !

    Anh
  6. Replies
    5
    Views
    23,059

    Implicit declaration of function

    Hi,
    i've done some search in this forum but didn't find any solution.
    Basically, my program use some functions like: strcpy, strlen ...

    When compiling, it throws some warnings:

    server.c:114:...
  7. Replies
    8
    Views
    40,695

    Implicit declaration of function ...???

    Hi,
    I keep getting the warning of:

    Implicit declaration of funciton getline()

    whenever i use getline() function

    What does this warning mean actually ?
    Is this a serious warning, or...
  8. Replies
    13
    Views
    2,335

    Tonto, Thanks for reply. But it'd be so...

    Tonto,

    Thanks for reply.
    But it'd be so nice if the string is formatted like that, i.e: words could be seperated by more than one blank characters; so i think it'd be better to use strtok().
  9. Replies
    13
    Views
    2,335

    Ok, im still wondering what actually does happen...

    Ok, im still wondering what actually does happen when i call:


    array[i] = (char *)malloc(sizeof(char))

    And does "Access array[i]" means getting the content of array[i] or even allocating...
  10. Replies
    13
    Views
    2,335

    Thank very much for your reply 1.Why ? I see...

    Thank very much for your reply

    1.Why ? I see in many book they recommend to cast
    2. OK, thanks.
    3. Because im using strtok (which does crazy things to the string), its not possible to implement...
  11. Replies
    13
    Views
    2,335

    So if i used char **array = (char...

    So if i used


    char **array = (char *)malloc(sizeof(char*));


    will it fix the problem ? Im still confused about accessing array[i] with any i>0.
  12. Replies
    13
    Views
    2,335

    Why does the program have undefined behavior ?...

    Why does the program have undefined behavior ?
    Is there a way to detect this behavior ? I've run the program many time in diferrent machines, with different test file, but didn't find any problem.
    ...
  13. Replies
    13
    Views
    2,335

    Why this (dynamic array) doesn't crash ?

    Hi, i have the following code which manages to get words from a line and store them into an array (number of words is unknown).



    char **createArray(char *line, int *length){
    char **array =...
Results 1 to 13 of 13