From 058d465404a655acc494c24b79c4062c8063dad9 Mon Sep 17 00:00:00 2001 From: Yurii Yakovenko Date: Tue, 1 Oct 2024 19:13:33 +0000 Subject: [PATCH] Update cv1/program.c --- cv1/program.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cv1/program.c b/cv1/program.c index cda7886..a2a72ab 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -1,9 +1,13 @@ #include #include #include -// / +// bool check(char* s2, char *pz) { + if(s2==NULL || pz==NULL) + { + return false; + } char *s=(char*) malloc(strlen(s2)+1); if(s==NULL) { @@ -30,8 +34,8 @@ bool check(char* s2, char *pz) int main() { - char r[300];//="8ryNd20va P1zza"; - char pizz[99];//="piz"; + char r[3000];//="8ryNd20va P1zza"; + char pizz[990];//="piz"; char *p; float price; int count =0;