Search:

Type: Posts; User: guillermoh

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    22
    Views
    5,908

    Thanks!

    Thanks!
  2. Replies
    22
    Views
    5,908

    What would be this other method?

    What would be this other method?
  3. Replies
    22
    Views
    5,908

    Divisible by 2

    Hello.

    Is there a better way to know if a number is even or odd than checking if it is divisible by two?

    ThankS
  4. Replies
    5
    Views
    3,035

    Thanks for your answer. I would like to know...

    Thanks for your answer.

    I would like to know if it's just matter of style or it is wrong to do it this way (my way)?
  5. Replies
    5
    Views
    3,035

    switch statement

    Hello.

    I was wondering if it is "healthy" to define return statements in each switch statement, I mean:



    int function (...)
    {
    int data;
    ...
  6. Replies
    1
    Views
    1,302

    static char* function()

    Hello,

    Could somebody explain me the difference between:

    static char* function(){...

    and

    char* function(){...
  7. Replies
    9
    Views
    4,514

    free() twice

    Hello.

    What are the implications of free() a pointer twice?




    ....
    gchar *string;
    ....
  8. Replies
    2
    Views
    2,141

    Hey I found the way to get the list of...

    Hey I found the way to get the list of interfaces. Here is how (for for those interested in the subject)




    /* Show the list of interfaces to the user. */
    void
    show_interfaces(void)
    {
    ...
  9. Replies
    1
    Views
    1,310

    Global variables

    Hello people.

    How dangerous it is to use global/external variables?
    Suppose I have several ".c" and ".h" files in a project. This struct is defined:



    struct example
    {
    char *element_A;
  10. Replies
    2
    Views
    2,141

    Reading from the Ethernet card.

    Hello to all.

    I'm developing a simple sniffer using, for now, the library set: libpcap. I'm using this functions to open the socket for reading.




    int sock;
    char *dev;
    char...
  11. Replies
    26
    Views
    2,387

    Thanks. What about static const char*...

    Thanks.

    What about

    static const char* string[] = .... ?
  12. Replies
    26
    Views
    2,387

    I understand. So this would be fine ...

    I understand. So this would be fine




    const char *text[] = {"memory","information"};



    int main()
  13. Replies
    26
    Views
    2,387

    I'm trying to solve this:

    I'm trying to solve this:
  14. Replies
    26
    Views
    2,387

    Does this solve my problems? int main() {...

    Does this solve my problems?



    int main()
    {
    gchar *string;
    while(i<100)
    {
    ...
  15. Replies
    26
    Views
    2,387

    Sorry. typing mistake

    Sorry. typing mistake
  16. Replies
    26
    Views
    2,387

    Do I need to malloc()?

    Do I need to malloc()?
  17. Replies
    26
    Views
    2,387

    free() Memory Question

    Hello to all.

    Is this program licking memory?




    int main()
    {
    while(i<100)
  18. Replies
    4
    Views
    1,336

    Ok. But what if I want to do this: ...

    Ok.

    But what if I want to do this:

    printf("Hablo <TAB> Espa\303\261ol"); ?
  19. Replies
    4
    Views
    1,336

    Characters encoding

    Hello.

    I know I cant insert a "ñ" is a string doing "Espa\303\261a". Where can I find all this conversion. For example, how can I do to insert an Horizontal Tab in a string?.

    Thanks for your...
  20. Replies
    4
    Views
    4,777

    Thanks a lot!

    Thanks a lot!
  21. Replies
    4
    Views
    4,777

    I read the Work with files (C) section but it...

    I read the Work with files (C) section but it really doesn't explain how to use this function
  22. Replies
    4
    Views
    4,777

    Using fgets()

    Hello.

    I want to use the fgets() function to read from a file. I know this function reads n number of bytes and that it stops when encounters a newline character. This is the syntax:

    char *...
  23. Replies
    3
    Views
    1,473

    Try initializing the line array.

    Try initializing the line array.
  24. Replies
    4
    Views
    1,373

    Try this .... while (1) { ...

    Try this



    ....
    while (1)
    {
    scanf("&#37;c", &selection);
    if (selection == 'D')
    {
  25. Replies
    9
    Views
    1,443

    Thanks a lot. That's what I thought.

    Thanks a lot. That's what I thought.
Results 1 to 25 of 38
Page 1 of 2 1 2