misc.h

来自「著名的解Unix密码的源程序」· C头文件 代码 · 共 59 行

H
59 行
字号
/* * This file is part of John the Ripper password cracker, * Copyright (c) 1996-98 by Solar Designer *//* * Miscellaneous routines. */#ifndef _JOHN_MISC_H#define _JOHN_MISC_H#include <stdio.h>/* * Exit on error. Terminates the process with non-zero exit status. */extern void error();/* * Similar to perror(), but supports formatted output, and calls error(). */extern void pexit(char *format, ...)#ifdef __GNUC__	__attribute__ ((format (printf, 1, 2)));#else	;#endif/* * Similar to fgets(), but doesn't leave the newline character in the buffer. * Handles both UNIX and DOS style text files correctly. */extern char *fgetl(char *s, int size, FILE *stream);/* * Similar to strncpy(), but terminates with only one null if there's room * instead of null padding to the supplied size like strncpy() does. */extern char *strnfcpy(char *dst, char *src, int size);/* * Similar to the above, but always null terminates the string. */extern char *strnzcpy(char *dst, char *src, int size);/* * Similar to strncat(), but total buffer size is supplied, and always null * terminates the string. */extern char *strnzcat(char *dst, char *src, int size);/* * Converts a string to lowercase. */extern char *strlwr(char *s);#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?