Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - printf.c
Search - printf.c - List
DL : 0
本人参照linux 0.1内核源代码写的printf函数的实现,支持 c, s, o, d, x, f的打印输出-I am the light of linux 0.1 kernel source code to write to achieve the printf function in support of c, s, o, d, x, f print output
Date : 2025-12-21 Size : 2kb User : phili

DL : 0
在Unix/Linux下C++编程,写日志文件是重要的调试手段。提供一个写log的类,用起来很方便。如log.logwrite("hello, s\n", somestring) 与printf函数一样的参数用法。-class of log to file, for C++ under Unix/Linux.
Date : 2025-12-21 Size : 9kb User : ttww2000

自己用c语言实现的printf函数,可供大家参考。-linux
Date : 2025-12-21 Size : 2kb User : xiaohw

DL : 0
Linux 终端显示的缓冲是有限的(默认的显示几百行),所以如果我们程序printf行数较多,或者程序运行时间较长,难免有一些记录被冲掉,进而影响查看bug。特别是对随机的、少重现错错误,想通过屏幕上printf出来的数据调试,就难免困难一些,当然我们也可以使用重定向实现 程序>log.txt 但是这种方式,打印到文件上便不能显示到屏幕上了,所以有一定的局限性。 于是写了一个程序用意实现。 改程序有以下几个文件 Debug.c Debug.h 改打印log程序可以关闭和打开文件输出、屏幕输出详细说明如下: debug_term_on() //将打印信息输出到屏幕上 debug_term_off() //不将打印信息输出到屏幕上 debug_file_off() //不将打印信息输出到文件中 debug_set_dir( “./log” ) //设置log文件夹 debug_file_on() //将打印信息输出到文件中 - print the log into file
Date : 2025-12-21 Size : 5kb User : 璐盟其

Linux 系统串口使用代码 /* * Program: serial.c * Author: Paul Dean * Version: 0.0.3 * Date: 2002-02-19 * Description: To provide underlying serial port function, * for high level applications. * */ #include <termios.h> /* tcgetattr, tcsetattr */ #include <stdio.h> /* perror, printf, puts, fprintf, fputs */ #include <unistd.h> /* read, write, close */ #include <fcntl.h> /* open */ #include <sys/signal.h> #include <sys/types.h> #include <string.h> /* bzero, memcpy */ #include <limits.h> /* CHAR_MAX */ #include "vardef.h" /* INT32, INT16, INT8, UINT32, UINT16, UINT8 */ #include "serial.h"-This directory contains the version 0.0.4 release of the Serial Debugger (SDB). The SDB is free software. If you think it is useful in your applications or solutions, you are admitted to use this source code with the declaration of Copyright to the original author, now Ding Baohua. Install procedure is referred to INSTALL file.
Date : 2025-12-21 Size : 8kb User : zhangxiaojun

Printf variants that place their output in a C++ string.Lower-level routine that takes a va_list and appends to a specified string. All other routines are just convenience wrappers around it.
Date : 2025-12-21 Size : 2kb User : gintxrp

DL : 0
printf.c: Internal prom library printf facility.
Date : 2025-12-21 Size : 1kb User : hbphdh

unix c语言高级环境编程,一些小例子仅供参考,主要是使用C程序访问环境变量,系统提供了一个全局变量(include <stdio.h> int main(void){ extern char **environ; int i=0; while(*(environ+i)!=NULL){ printf("%s\n",*(environ+i)); i++; } return 0; })
Date : 2025-12-21 Size : 11kb User : lilililei

用putchar实现printf所有功能(using putchar() to achieve all feature of printf)
Date : 2025-12-21 Size : 5kb User : 黑客1213

DL : 0
基于LINU X平台的日志模块实现,日志输出模块,功能如下: 1. 记录日志到文件,按日期和大小进行归档 2. 日志的输入格式和printf的格式相同 3. 支持对日志文件进行压缩(Logging module implementation)
Date : 2025-12-21 Size : 2kb User : baosrl
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.