<p>Write a function thats called trimfrnt() that deletes all leading blanks from
ID: 3637416 • Letter: #
Question
<p>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…</p><p> </p>
<p>#include <iostream></p>
<p>using namespace std;</p>
<p>void trimfrnt(char *strng);</p>
<p>int main()</p>
<p>{</p>
<p>int i = 0;</p>
<p>int len = 0;</p>
<p>len = strlen(strng);</p>
<p>i = len - 1;</p>
<p>while (*(strng + i) && *(strng + i) == ' ')</p>
<p>i--;</p>
<p>len = i + 1;</p>
<p>*(strng + len) = '';</p>
<p>return;</p>
<p>}</p>