Changeset 682 for trunk/user/chat
- Timestamp:
- Jan 3, 2021, 11:32:52 PM (4 years ago)
- Location:
- trunk/user/chat
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/user/chat/chat.c
r676 r682 159 159 unsigned long long start_cycle; 160 160 161 // check arguments162 if( argc == 0 )163 {164 printf("\n[chat error] cannot get process argument / pid %x\n", getpid() );165 exit( 1 );166 }167 168 // get process index 0/1169 is_0 = (strcmp( "0" , argv[0] ) == 0);170 171 161 // get start cycle 172 162 get_cycle( &start_cycle ); 163 164 // check arguments 165 if( argc != 1 || argv[0] == NULL ) 166 { 167 printf("\n[chat error] : pid %x / argc %d / argv %x / argv[0] %x / cycle %d\n", 168 getpid() , argc , argv , argv[0] , (unsigned int)start_cycle ); 169 170 exit( -1 ); 171 } 172 173 // get process index 0/1 174 is_0 = (atoi( argv[0] ) == 0); 173 175 174 176 //////////////////////////
Note: See TracChangeset
for help on using the changeset viewer.