Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <windows.h>
- // sz[101] = " |123|Message_Panasonic|yyyyyyyyy|Tue Aug 06 15:52:29 2019",
- char sz[101] = " |123|Message_Panasonic|Tue Aug 06 15:52:29 2019",
- *psz[101],
- sz1[100],
- sz2[100],
- sz3[100];
- int counter = 0;
- ///////////////////////////////////
- int main() //
- {
- psz[1] = sz;
- while(*psz[1]++ != '|');
- printf("psz[1] = %d\n", psz[1]);
- printf("SIMBOL = %c\n", *psz[1]);
- /////////////////////////////////////////// || *psz[1] != 0
- int i = 0;
- for(; *psz[1] != '|'; i++)
- {
- sz1[i] = *psz[1];
- *psz[1]++;
- }
- sz1[i] = 0; counter ++;
- /////////////////////////////////////////// || *psz[1] != 0
- i = 0;
- psz[1]++;
- for(; *psz[1] != '|'; i++)
- {
- sz2[i] = *psz[1];
- *psz[1]++;
- }
- sz2[i] = 0; counter ++;
- ///////////////////////////////////////////
- i = 0;
- psz[1]++;
- for(; *psz[1] != 0; i++) //*psz[1] != '|' ||
- {
- sz3[i] = *psz[1];
- *psz[1]++;
- }
- sz3[i] = 0; counter ++;
- printf("sz1 = %s\n", sz1);
- printf("sz2 = %s\n", sz2);
- printf("sz3 = %s\n", sz3);
- printf("counter = %d\n", counter);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement