Write a function to remove all trailing blanks from the right end of a string. Assume the prototype is
void trimRight(char a[]);
Write a function to remove all leading blanks from the left end of a string. Assume the prototype is
void trimLeft(char a[]);
Write a function to add extra blanks to the right end of a string to make it at least length n. If the string is already n characters or longer, do not change the string. Assume the prototype is
void padRight(char a[], int n);

No one is going to do your homework. Please post the code you have attempted to write and ask specific questions about what you don't understand. Do the assignment one function at a time, don't attempting to write them all at once. Write a little code, compile, correct errors, then repeat until the function is complete.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.