Advertisement
dllbridge

Untitled

Aug 13th, 2019
680
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.35 KB | None | 0 0
  1.  
  2. #include   <stdio.h>
  3. #include <windows.h>
  4.  
  5. //   sz[101] = "    |123|Message_Panasonic|yyyyyyyyy|Tue Aug 06 15:52:29 2019",
  6.  
  7.  
  8. char  sz[101] = "    |123|Message_Panasonic|Tue Aug 06 15:52:29 2019",
  9.     *psz[101],
  10.      sz1[100],
  11.      sz2[100],    
  12.      sz3[100];
  13.  
  14. int  counter = 0;
  15.  
  16. ///////////////////////////////////
  17. int main()                       //  
  18. {
  19.    
  20.     psz[1] = sz;
  21.  
  22.    
  23.    
  24.     while(*psz[1]++ != '|');
  25.  
  26.     printf("psz[1] = %d\n", psz[1]);
  27.    
  28.     printf("SIMBOL = %c\n", *psz[1]);
  29.     ///////////////////////////////////////////                                     || *psz[1] != 0
  30.     int i = 0;
  31.     for(; *psz[1] != '|'; i++)
  32.     {
  33.         sz1[i] = *psz[1];
  34.         *psz[1]++; 
  35.     }
  36.     sz1[i] = 0;                     counter ++;
  37.     ///////////////////////////////////////////                                    || *psz[1] != 0
  38.     i = 0;
  39.     psz[1]++;
  40.     for(; *psz[1] != '|'; i++)
  41.     {
  42.         sz2[i] = *psz[1];
  43.         *psz[1]++; 
  44.     }
  45.     sz2[i] = 0;                    counter ++;  
  46.     ///////////////////////////////////////////
  47.     i = 0;
  48.     psz[1]++;
  49.     for(; *psz[1] != 0; i++)                                               //*psz[1] != '|' ||
  50.     {
  51.         sz3[i] = *psz[1];
  52.         *psz[1]++; 
  53.     }
  54.     sz3[i] = 0;                    counter ++;  
  55.  
  56.    
  57.     printf("sz1 = %s\n", sz1);
  58.     printf("sz2 = %s\n", sz2); 
  59.     printf("sz3 = %s\n", sz3); 
  60.     printf("counter = %d\n", counter);
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement