how do i set the blank space formatting in VC++ ?
char *sorter(char *datatext, int *index, int *bookmark)
{
int i;
int checkmark;
char link[] = "";
char datatext2[] = {*datatext};
if ((datatext2[(*bookmark) +1] == '/0') && (datatext2[(*bookmark)] == '/0'))
{
return "done";
}
else if((datatext2[(*bookmark)] != '/0'))
{
checkmark = *bookmark;
(*bookmark)++;
while ( (datatext2[*bookmark] != 'C' || datatext2[*bookmark] != 'c')
&& (datatext2[ (*bookmark) +1] != ':') && (*bookmark) != '/0')
{
(*bookmark)++;
};
};
// char link[ ((*bookmark) - checkmark)];
for(i = 0; checkmark < (*bookmark) ; i++)
{
link[i] = datatext2[checkmark];
(checkmark)++;
}
(*index)++;
return link;
}
instead of every line getting pushed to the left.
when u hit enter in VC++, it formats to the above blankspace format
is there a way to make it format like above without hitting enter on every single line all the time?

