📄 menulib.c
字号:
/* * FILENAME: menulib.c * * Copyright 2000-2004 By InterNiche Technologies Inc. All rights reserved * Portions Copyright 1993 by NetPort software * * Misc utility routines for Interniche menuing system * * MODULE: NTF * * ROUTINES: settrapsize() * * PORTABLE: yes */#include "license.h"#include "ipport.h"#include "menu.h"#include "in_utils.h"/* FUNCTION: settrapsize() * * settrapsize() - This sets a value which will cause the memory * managment monitoring code to trap to a debugger if a malloc is * attempted for this size. This is usefull when a memory leak is * occuring of memory buffers on an unusual size, as often happens * with networking code. It has nothing to do with SNMP traps. * Returns no meaningfull value; declared as int to make compiler * happy. * * * PARAM1: void * pio - output stream * * RETURNS: 0 */extern int memtrapsize; /* in memman.c or user heap code */intsettrapsize(void * pio) { char * cp; cp = nextarg(((GEN_IO)pio)->inbuf); memtrapsize = atoi(cp); ns_printf(pio,"malloc trap size set to %d\n", memtrapsize); return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -