Write a function thats called trimfrnt() that deletes all leading blanks from a
ID: 3637418 • Letter: W
Question
Write a function thats called trimfrnt() that deletes all leading blanks from a string. write this function using pointers with the return type void. The solution I come up with listed below, states I have an error in my programming?!? I’m having issues finding the error, please assist me, thanks…#include <iostream>
using namespace std;
void trimfrnt(char *strng);
int main()
{
int i = 0;
int len = 0;
len = strlen(strng);
i = len - 1;
while (*(strng + i) && *(strng + i) == ' ')
i--;
len = i + 1;
*(strng + len) = '';
return;
}