forked from KIX/lab1_git
16 lines
309 B
C
16 lines
309 B
C
#include <stdio.h>
|
|
#include <string.h>
|
|
int mystrlen(const char *s);
|
|
int main(int argc, char **argv)
|
|
{
|
|
printf("Print you string\n");
|
|
char s[100]; scanf("%s", s);
|
|
printf("You printed:%s\n", s);
|
|
printf("Your str has:%d chars\n", mystrlen(s));
|
|
return 0;
|
|
}
|
|
int mystrlen(const char *s)
|
|
{
|
|
return strlen(s);
|
|
}
|