diff --git a/src/stringManipulation.c b/src/stringManipulation.c index 228cc8c..8fb83eb 100644 --- a/src/stringManipulation.c +++ b/src/stringManipulation.c @@ -55,12 +55,16 @@ char *to_string(int number) } unsigned int power(unsigned int b, unsigned int n){ + if(b==0&&n==0) return 0; + else if(b>=1&&n==0) return 1; + else{ unsigned int result = 1, ctr = 0; while(ctr