| ??? 12/18/09 19:18 Modified: 12/18/09 19:19 Read: times |
#171741 - Crunched function Responding to: ???'s previous message |
It moves the char pointed to by str into the location pointed to by i2c_buffer, and then compares that to '(backslash)n' (which unfortunately has been eaten by the forum software, I've just noticed). It's the !='(backslash)n' that returns a value to the while loop. |
| Topic | Author | Date |
| Some help with copying strings in C (again) | 01/01/70 00:00 | |
| Blast. | 01/01/70 00:00 | |
| ? | 01/01/70 00:00 | |
| Crunched function | 01/01/70 00:00 | |
| maybe | 01/01/70 00:00 | |
| = vs == | 01/01/70 00:00 | |
| ok | 01/01/70 00:00 | |
| '\0' | 01/01/70 00:00 | |
| just for record | 01/01/70 00:00 | |
| Both are ok. | 01/01/70 00:00 | |
| A warning - not an error | 01/01/70 00:00 | |
| Yes. Should have said "warning" | 01/01/70 00:00 | |
| but | 01/01/70 00:00 | |
Assign always spreads to the left, but mind the data type | 01/01/70 00:00 |



