Search:

Type: Posts; User: zbonzbon

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    3,410

    Hi MK27, Thanks you for you help and you are...

    Hi MK27,

    Thanks you for you help and you are right. I did not have the serial port setting up correctly. After I played around, I discovered that if I changed this settings to:
    ...
  2. Replies
    5
    Views
    3,410

    I tried to put in: printf("The length is: [%d]",...

    I tried to put in: printf("The length is: [%d]", strlen(input));

    And it seems that when I typed in: ls[Enter]

    The length is: [3] - So, it seems that it is including the CR but for some...
  3. Replies
    5
    Views
    3,410

    Hi itsme86, I am sorry. When I typed in from...

    Hi itsme86,

    I am sorry. When I typed in from the keyboard, it seems that it took it but it does not seem it sends to the serial port. So I put in the printf statement and see what is in the sdtin...
  4. Replies
    5
    Views
    3,410

    Select function

    Hi Guys,

    I am trying to learn how the select function works. The code below seems to work on the serial side. But not on the stdin side. Any ideas ?



    #include <sys/types.h>
    ...
  5. Replies
    10
    Views
    1,670

    Subsonics are correct. What the program doing is...

    Subsonics are correct. What the program doing is that - It is actually swapping the address that contain in vp1 and vp2. And it uses the char buf[size] as a storage for copying the address of the vp1...
  6. Replies
    10
    Views
    1,670

    Need help to understanding the code

    Hi Guys,

    I am working on this code, and it is working fine. However, I would like to how it actually works.

    Here is the code:




    #include <stdio.h>
  7. Thread: I need help

    by zbonzbon
    Replies
    12
    Views
    1,291

    Hi dwks, Thanks, I will read it now and I will...

    Hi dwks,

    Thanks, I will read it now and I will post my questions later.

    Regards,

    zbonzbon
  8. Thread: I need help

    by zbonzbon
    Replies
    12
    Views
    1,291

    Hi dwks, 1. Thanks a lot for your help. 2....

    Hi dwks,

    1. Thanks a lot for your help.

    2. Another hard topic that I also did not understand is - Link list. I have been trying to read and read. But most are very hard understand. Can you give...
  9. Thread: I need help

    by zbonzbon
    Replies
    12
    Views
    1,291

    Hi dwks, BTW, I sometimes saw a code and it...

    Hi dwks,

    BTW, I sometimes saw a code and it starts liked this:

    int main(argc, char argv[])

    I kind of understand that - argc is an argument count on the command line.

    argv[] is where it...
  10. Thread: I need help

    by zbonzbon
    Replies
    12
    Views
    1,291

    Hi dwks, 1. Yes, I just change *e2 into a...

    Hi dwks,

    1. Yes, I just change *e2 into a normal an array of structs - struct example e2[2]. Then it would work nicely. However, one important point I learn today (actually from you) is that - Do...
  11. Thread: I need help

    by zbonzbon
    Replies
    12
    Views
    1,291

    Hi dwks, Ah. I got it. Thanks Regards, ...

    Hi dwks,

    Ah. I got it. Thanks

    Regards,

    zbonzbon
  12. Thread: I need help

    by zbonzbon
    Replies
    12
    Views
    1,291

    Hi dwks, 1. I was just finishing to learn how...

    Hi dwks,

    1. I was just finishing to learn how array in C works and then I just use the same file to add the structure to it. That is why you see - Array.c - Learn how array works.

    2. What do...
  13. Thread: I need help

    by zbonzbon
    Replies
    12
    Views
    1,291

    I need help

    Hi People,

    I am trying to understand of how pointer to struct works. And I am running into a problem.

    Not sure why the last line "printf("Struct pointer with Name: %s\n",e2[0]->Name);" is...
Results 1 to 13 of 13