⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pcnvrt.h

📁 国外网站上的一些精典的C程序
💻 H
字号:
/***  demo code for converting Pascal strings to/from C strings****  public domain by Bob Stout*/#include <string.h>#include "sniptype.h"#define P2Cconvert(s) do \            {BYTE n = *(s); memmove((s), &(s)[1], n); s[n] = '\0';} while(0)#define C2Pconvert(s) do\            {int n = strlen(s); memmove(&(s)[1], (s), n); *(s) = n;} while(0)#if (0)                             /* Demo code fragment follows */      char string[81];      fgets(string, 81, inFile);    /* get 80-char C string       */      C2Pconvert(string);           /* convert it in place        */      P2Cconvert(string);           /* convert back               */#endif

⌨️ 快捷键说明

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