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:
...
Type: Posts; User: zbonzbon
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:
...
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...
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...
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>
...
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...
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>
Hi dwks,
Thanks, I will read it now and I will post my questions later.
Regards,
zbonzbon
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...
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...
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...
Hi dwks,
Ah. I got it. Thanks
Regards,
zbonzbon
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...
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...