bosko lekovic
/
EthToCom_11
nova proba
Diff: clubbing.cpp
- Revision:
- 5:c9a908749d4c
- Parent:
- 3:1196befeace0
- Child:
- 8:c0f54b381346
diff -r 7abcf4543282 -r c9a908749d4c clubbing.cpp --- a/clubbing.cpp Sat Apr 11 17:11:38 2020 +0000 +++ b/clubbing.cpp Sun Apr 12 17:59:57 2020 +0000 @@ -8,10 +8,9 @@ #include <ctype.h> - /********************** PRINT-ovi *********************************/ -void P_niz( char *s, char *niz, int val ) +void P_niz( const char *s, const char *niz, int val ) { printf("%s",s); for( int i=0; i < val; i++) printf("%c", niz[i]); @@ -19,7 +18,7 @@ fflush(stdout); } -void P_int(char *s, int i ) +void P_int(const char *s, int i ) { printf("%s = %d\n\r", s, i); fflush(stdout); } @@ -32,7 +31,7 @@ /************************ IP testovi ****************************/ -int test_num( char *s ) +int test_num( const char *s ) { int m=strlen(s), n=0, i; for( i=0; i<m; i++) @@ -41,7 +40,7 @@ return 0; } -int test_ip( char *s ) +int test_ip( const char *s ) { char str[16]; strncpy( str, s, 16);