No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
hi, (on a linux system) i wrote the following code snippet to 1. write to a serial port 2. read the data that i have just written to the serial port. the write is functioning, but the read is not. if i use just the read (without "write", but by … |
|
hi, this is something i keep running into. for example, in the following example of strtok, i'm splitting a given string on a space(" ") delimiter: [code] #include<stdio.h> #include<string.h> int main() { char str[]="1234563 34 7898"; char delim[]=" "; char* result=NULL; char new[15][3]; int i=0; int j=0; bzero(new, sizeof new); … |
|
Hi, i am trying to read the contents of a text file containing a single line into a string. i'm doing this in a while loop. the text file gets updated in each run of the loop and therefore the string should contain a new value in each run. but … |