U E D R , A S I H C RSS

zennith/ls

μ§„μ§œ, 할일없어 λ§Œλ“  ν”„λ‘œκ·Έλž¨. 보면 μ•Œκ² μ§€λ§Œ.. λ§Œλ“  μ΄μœ λŠ” 자꾸 λ„μŠ€μ°½μ—μ„œ ls 라고 타이핑 ν•˜κ²Œ λ˜μ„œ 말이지.. 흐흐

~cpp 
#include <stdlib.h>

void myStrCat(char * dest, const char * source) {
	while(*dest++)
		;

	*--dest = ' ';
	dest++;

	while(*source)
		*dest++ = *source++;
}

int main(int argc, char * argv[]) {
	char argRedirectToDir[255] = "dir";
	int i;

	for (i = 1; i < argc; i++)
		myStrCat(argRedirectToDir, argv[i]);

	exit(system(argRedirectToDir));
}
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:31:48
Processing time 0.0108 sec