Here's the code:
Code:
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
char *string;
char length_string = 0;
char buffer_for_string = 0;
char *temp_one = malloc(sizeof(char));
if(temp_one == NULL)
{
free(string);
return -2;
}
else
{
string = temp_one;