/*-------------------------------------------------------------------------
Unescape string againts some character
Call: void strunescape(char *source, char symbol);
Args: source - source string, is subject to change!
symbol - unescaping symbol
Source string MUST be finished by \0'.
-------------------------------------------------------------------------*/
#include "make.h"
// Main function
void strunescape(char *source, char symbol)
{
register int i = strlen(source);
register int j;
for(j = 0;j <= i;j++)
if (source[j] == symbol)
memmove(&source[j], &source[j + 1], i - j + 1);
}
Как можно было сделать то же самое, но при помощи традиционной обработки массива?
char* inputFileName;
char inputFileName[256];
char *inputFileName;
inputFileName = (char *) calloc(256, 1);