// Listing 17.11 - Using write()
#include <iostream>
#include <cstring>
using namespace std;
int main() {
char cadena[] = "One if by land";
int fullLength = strlen(cadena);
int tooShort = fullLength - 4;
int tooLong = fullLength + 6;
cout.write(cadena,fullLength) << endl;
cout.write(cadena,tooShort) << endl;
cout.write(cadena,tooLong) << endl;
return 0;
}