Changeset 329487c for tests/collections
- Timestamp:
- Aug 14, 2023, 9:32:06 PM (16 months ago)
- Branches:
- master
- Children:
- bcbc7e4
- Parents:
- 6264087
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/collections/string-istream.cfa
r6264087 r329487c 5 5 6 6 void istream_cstr(void) { 7 char s1[999], s2[999], s3[999], si[999]; 8 sin | wdi(999,s1) | wdi(999,s2) | wdi(999,s3); 7 enum { size = 999, rsize = size - 1 }; // string size, read size 8 char s1[size], s2[size], s3[size], si[size]; 9 sin | wdi(size,rsize,s1) | wdi(size,rsize,s2) | wdi(size,rsize,s3); 9 10 sout | s1; 10 11 sout | s2; 11 12 sout | s3; 12 13 for(;;) { 13 sin | wdi( 999,si);14 sin | wdi(size,rsize,si); 14 15 if (si[0] == '=') break; 15 16 sout | si;
Note: See TracChangeset
for help on using the changeset viewer.