📄 replace.h
字号:
head 2.2;access;symbols;locks; strict;comment @ * @;2.2date 95.10.27.20.08.27; author tsurace; state Release;branches;next 2.1;2.1date 95.10.24.15.52.51; author tsurace; state Exp;branches;next 1.3;1.3date 95.10.18.23.00.20; author tsurace; state Beta;branches;next 1.2;1.2date 95.10.11.21.23.01; author tsurace; state Exp;branches;next 1.1;1.1date 95.10.05.17.54.37; author tsurace; state Exp;branches;next ;desc@Functions that replace VaporTalk functions and unsupported UN*Xfunctions.@2.2log@Added replacement getch() function.@text@#ifndef __REPLACE_H_
#define __REPLACE_H_
#include <winsock.h>
#ifdef __cplusplus
extern "C" {
#endif
const char * NewSocket(SOCKET s, long evt); /* Call after connect() */
void WriteString(char * str, int len); /* Std out
int getch(); /* Hah! */
/* this is sufficient for vt's purposes */
struct passwd {
char *pw_dir;
};
struct passwd * getpwnam (const char * name); /* Always fails */
void setpwent(void);
void endpwent(void);
#ifdef __cplusplus
}
#endif
#endif /* __REPLACE_H_ */
@2.1log@Roll.@text@d11 1@1.3log@*** empty log message ***@text@@1.2log@NewSocket can now return an error code if Windoze fails.@text@d9 2a10 2 const char * NewSocket(SOCKET s, long evt); void WriteString(char * str, int len); d17 1a17 1 struct passwd * getpwnam (const char * name); // Always fails@1.1log@Initial revision@text@d9 2a10 2 void NewSocket(SOCKET s, long evt); /* Tell Windoze about new socket */ void WriteString(char * str, int len); /* Send stringto "console */d12 2a13 3 /* functions to replace unix functionality */ struct passwd {d17 1a17 1 struct passwd * getpwnam (const char * name);@
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -