您好,欢迎来到百家汽车网。
搜索
您的当前位置:首页排屑器M代码

排屑器M代码

来源:百家汽车网


排屑器M代码

char *alloc(int n) /* return pointer to n characters */

{

if (allocbuf + ALLOCSIZE - allocp >= n) { /* it fits */

allocp += n;

return allocp - n; /* old p */

} else /* not enough room */

return 0;

}

void afree(char *p) /* free storage pointed to by p */

{

if (p >= allocbuf && p < allocbuf + ALLOCSIZE)

allocp = p;

}

/* strcpy: copy t to s; array subscript version */

void strcpy(char *s, char *t)

{

int i;

i = 0;

while ((s[i] = t[i]) != '\\0')

i++;

}

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- baijiahaobaidu.com 版权所有 湘ICP备2023023988号-9

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务