#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#define LITTLE_BUFFER_SIZE 50
int main() {
char str1[LITTLE_BUFFER_SIZE] = "Operating"; // Writeable buffer
const char *str2 = "Super Systems"; // Fixed literal
char str3[LITTLE_BUFFER_SIZE];
char *str4;
const char *cp;
printf("Length of str1: %zu\n", strlen(str1));
cp = strstr(str2, " S"); // Find some substring
strcat(str1, cp);
printf("Concatenated string: %s\n", str1);
strcpy(str3, str1);
str3[5] = '\0'; // Shorten the string
printf("First 5 characters: %s\n", str3);
str4 = strdup(str3); // Make a duplicate of str3 on the heap
printf("Duplicated string: %s\n", str4);
free(str4); // Free the heap memory
return 0;
}