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

📄 tag.c

📁 压缩包里面的都是精致的基本C语言小程序
💻 C
字号:
#include <stdio.h>#include "mystdlib.h"#include "error.h"#include "tag.h"static int maxSize = 1000;struct tag{  int junk;};tag newTag (){  tag temp = checkedMalloc (sizeof (*temp));  return temp;}int tagEquals (poly t1, poly t2){/*  strOutput2 ("now comparing tag: ");  strOutput (tagToString (t1));  strOutput2 ("; ");  strOutput (tagToString (t2));  strOutput2 ("\n");*/  return (((tag)t1) == (((tag)t2)));}str tagToString (poly t){  char *temp;  temp = checkedMalloc (maxSize * sizeof (char));    sprintf (temp, "%p", (t));  if(!(strValid (temp, maxSize)))     exception ("space too limited: tag.c\n");       str sss = newStr (temp);  checkedFree (temp);    return sss;}

⌨️ 快捷键说明

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