Changeset 2408 for pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
- Timestamp:
- Jan 1, 2009 10:08:21 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r2394 r2408 2751 2751 2752 2752 printf("%s (empty to cancel): ", title); fflush(stdout); 2753 fgets(buf, len, stdin); 2753 if (fgets(buf, len, stdin) == NULL) 2754 return PJ_FALSE; 2754 2755 2755 2756 /* Remove trailing newlines. */ … … 2795 2796 2796 2797 fflush(stdout); 2797 fgets(buf, len, stdin); 2798 if (fgets(buf, len, stdin) == NULL) 2799 return; 2798 2800 len = strlen(buf); 2799 2801 … … 3024 3026 3025 3027 printf("Codec name (\"*\" for all) and priority: "); 3026 fgets(input, sizeof(input), stdin); 3028 if (fgets(input, sizeof(input), stdin) == NULL) 3029 return; 3027 3030 if (input[0]=='\r' || input[0]=='\n') { 3028 3031 puts("Done");
Note: See TracChangeset
for help on using the changeset viewer.