search for: mystrcmp

Displaying 1 result from an estimated 1 matches for "mystrcmp".

Did you mean: fstrcmp
1997 Oct 08
5
Malicious Linux modules
...tr) - 1; ptr >= str; ptr--) { if(*ptr < ''0'' || *ptr > ''9'') return(-1); res += (*ptr - ''0'') * mul; mul *= 10; } return(res); } void mybcopy(char *src, char *dst, unsigned int num) { while(num--) *(dst++) = *(src++); } int mystrcmp(char *str1, char *str2) { while(*str1 && *str2) if(*(str1++) != *(str2++)) return(-1); return(0); } struct task_struct *find_task(pid_t pid) { struct task_struct *task = current; do { if(task->pid == pid) return(task); task = task->next_task; } while(task != curre...