how can I get a string with spaces in it, i tried these to methods to no avail.

scanf("%s",array);

fgets(array, sizeof(array), stdin);
array[strlen(array) - 1] = '/0'