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

📄 sony_itoa.c

📁 操作系统SunOS 4.1.3版本的源码
💻 C
字号:
#ifndef lintstatic	char sccsid[] = "@(#)sony_itoa.c 1.1 92/07/30 SMI";#endif not lint/* * Copyright (c) 1989 by Sun Microsystems, Inc. */#include <stdio.h>#include <string.h>#include <sys/types.h>/* * The laser disk uses character strings, but it is nicer * to specify frame chapter numbers in ints. sony_itoa * converts int's into unsigned char arrays for the laser * disk player */u_char *sony_itoa(number)int number;{	u_char *string;	if((string = (u_char *)malloc(10)) == NULL) {		perror("sony_itoa: could not allocate space\n");		exit(1);	}	sprintf(string, "%d", number);	strncat(string, "\0", 1);	return(string);}

⌨️ 快捷键说明

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