Search:

Type: Posts; User: falconetti

Search: Search took 0.01 seconds.

  1. Thread: free()

    by falconetti
    Replies
    2
    Views
    1,062

    free()

    ptr = (char *) calloc (100, sizeof (char));

    free (ptr);



    how can free() know how many bytes to free? (in this case 100)
  2. Replies
    1
    Views
    2,544

    signal handler

    Hello

    I am starting to understand signal processing in UNIX. I still have some doubts ...

    In the following program (not written by me, of course) why is sigint_handler() declared inside main()...
  3. Thread: size_t

    by falconetti
    Replies
    2
    Views
    1,821

    size_t

    Hello,

    Here comes one of those questions that I am always afraid of asking... I have the feeling it is quite a simple one and it almost feels ridiculous, heh. Well ...

    In a prototype...
  4. Thread: where from

    by falconetti
    Replies
    47
    Views
    8,993

    Spain here. Toro, Olé !

    Spain here.

    Toro, Olé !
  5. Replies
    5
    Views
    2,404

    Thanks

    Now the whole thing starts to make sense.

    Thank you all !!
  6. Replies
    5
    Views
    2,404

    An example

    Ok, here comes an example from the book:



    table = (int **)calloc (rowNum + 1, sizeof (int *));

    table[0] = (int *)calloc (4, sizeof (int));
    table[1] = (int *)calloc (2, sizeof (int));...
  7. Replies
    5
    Views
    2,404

    Array of pointers

    Hello all.

    I have a question regarding arrays of pointers.

    Let´s say I want to create an array of pointers, each pointer pointing to an array of integers. I have 5 arrays of integers, that...
  8. Thread: Thanks

    by falconetti
    Replies
    0
    Views
    860

    Thanks

    Thank you all for good suggestions. After playing a bit with vimrc I think I have got colors and indentation back !
  9. Thread: vim

    by falconetti
    Replies
    2
    Views
    1,530

    vim

    Hello all.

    I have installed a new distro on my comp and I just wonder how I can configure vim editor so colours and tabs show when writing code. Any help appreciated.
  10. Replies
    2
    Views
    1,607

    thanks

    I took some time for me to understand why I should create a new ponter to a pointer , but I got it now.
    The value of the old pointer is changed by the called function:)

    Tnak you, zen
  11. Replies
    2
    Views
    1,607

    dynamic memory

    Hello all !

    I am starting to use my new aquired (and limited) knowledge on dynamic memory. With this program I intend to allocate some memory from the program heap and use it for storing an array...
  12. Replies
    4
    Views
    1,316

    Thanks

    Thank you, QuestionC.

    I should have remembered that an array name actually is a pointer constant and not a pointer variable.

    Things seem much more clear now :)
  13. Replies
    4
    Views
    1,316

    pointers & arrays

    Hello all !

    I am reading my first c book, and I could almost say "so far so good". Some serious doubts are starting to arise though. Most of them regarding pointers (I know you expected this :) )...
  14. Thread: math.h

    by falconetti
    Replies
    2
    Views
    1,903

    thanks. problem fixed

    Thank you Salem !

    Command gcc -lm prog.c solved the linking problem :)
  15. Thread: math.h

    by falconetti
    Replies
    2
    Views
    1,903

    math.h

    Hi

    I am new to c programming. I am also a linux newbie.

    Well, I am reading my first c book, "A Structured Programming Approach Using C" by Forouzan & Gilberg. So far everything has gone smooth...
Results 1 to 15 of 16