📝 Added sandbox (code sketchbook)

This commit is contained in:
z3rOR0ne 2023-04-22 00:41:54 -07:00
parent b475595f7f
commit b5daf18b1a
142 changed files with 100702 additions and 0 deletions

19
sandbox/atoi.c Normal file
View file

@ -0,0 +1,19 @@
/* https://www.tutorialspoint.com/c_standard_library/c_function_atoi.htm */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main() {
int val;
char str[20];
strcpy(str, "98993489");
val = atoi(str);
printf("String value = %s, Int value = %d\n", str, val);
strcpy(str, "tutorialspoint.com");
val = atoi(str);
printf("String value = %s, Int value = %d\n", str, val);
return 0;
}