Your missionImplement a function that outputs every character of a null-terminated string to file descriptor 1.See it in actionwrite_str("segfault on line one")segfault on line onewrite_str("")(empty result)Your checklistThe function receives a pointer to the first character of a null-terminated string.Use the write syscall to emit each character one at a time until the null terminator is reached.Do not print the null terminator itself and do not add any extra characters.ConstraintsExpected filewrite_str.cAllowed functionswrite
Your missionImplement a function that outputs every character of a null-terminated string to file descriptor 1.See it in actionwrite_str("segfault on line one")segfault on line onewrite_str("")(empty result)Your checklistThe function receives a pointer to the first character of a null-terminated string.Use the write syscall to emit each character one at a time until the null terminator is reached.Do not print the null terminator itself and do not add any extra characters.ConstraintsExpected filewrite_str.cAllowed functionswrite