This website works better with JavaScript.
首頁
探索
lain.church
說明
註冊
登入
xolatile
/
xtandard
關註
1
收藏
1
複製
0
程式碼
問題管理
0
合併請求
0
版本發佈
0
Wiki
Activity
瀏覽代碼
Added limit function...
master
Ognjen Milan Robovic
8 月之前
父節點
1d9f128c1d
當前提交
4f7de650a5
共有
2 個文件被更改
,包括
12 次插入
和
0 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+10
-0
xtandard.c
+2
-0
xtandard.h
+ 10
- 0
xtandard.c
查看文件
@@ -67,6 +67,16 @@ void fatal_failure (int condition, char * message) {
}
}
void limit (int * value, int minimum, int maximum) {
if (* value <= minimum) {
* value = minimum;
}
if (* value >= maximum) {
* value = maximum;
}
}
void * allocate (int size) {
char * data = NULL;
+ 2
- 0
xtandard.h
查看文件
@@ -80,6 +80,8 @@ extern void echo_byte (int);
extern void fatal_failure (int, char *);
extern void limit (int *, int, int);
extern void * allocate (int);
extern void * reallocate (void *, int);
extern void * deallocate (void *);
Write
Preview
Loading…
取消
儲存