summaryrefslogtreecommitdiff
path: root/my_atoi_using.c
diff options
context:
space:
mode:
Diffstat (limited to 'my_atoi_using.c')
-rw-r--r--my_atoi_using.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/my_atoi_using.c b/my_atoi_using.c
new file mode 100644
index 0000000..8575c55
--- /dev/null
+++ b/my_atoi_using.c
@@ -0,0 +1,17 @@
+#include <stdio.h>
+
+
+#include "my_atoi.h"
+
+
+int main(int argc, char **argv)
+{
+ char input[3000];
+ while (1) {
+ printf("Enter number for my_atoi: ");
+ scanf(" %s", input);
+ printf("Using my very own my_atoi function I will return the string \"%s\" back in actual number form: %lf\n",input , my_atoi(input));
+ }
+
+ return 0;
+}