diff options
| -rw-r--r-- | simple-C-programs/DynamicString.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/simple-C-programs/DynamicString.c b/simple-C-programs/DynamicString.c new file mode 100644 index 0000000..9141dba --- /dev/null +++ b/simple-C-programs/DynamicString.c @@ -0,0 +1,25 @@ +#include <stddef.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> + + +int main() { + + printf("Echo function:: Write something to ECHO: "); + + + char *Dynamic_string = NULL; + size_t string_length = 20; + Dynamic_string = malloc(string_length); + + int input; + while((input = getchar()) != '\n' && input != EOF) { + + } + + + + + return 0; +}
\ No newline at end of file |
