C language -- common string functions and their simulation implementation

preface The C library provides multiple functions for processing strings. ANSI C places the prototypes of these functions in string H header file. The most commonly used functions are strlen(), strcat(), strncat(), strcmp(), strncmp(), strcpy(), and strncpy(). In addition, there is the sprintf() function, whose prototype is stdio H header file ...

Posted by tomhath on Tue, 28 Dec 2021 18:54:09 +0100

04. Transplantation of W601 EasyLogger

04. Transplantation of W601 EasyLogger 1. Introduction EasyLogger It is an ultra lightweight (ROM < 1.6K, RAM < 0.3k) and high-performance C/C + + log library, which is very suitable for resource sensitive software projects, such as IoT products, wearable devices, smart homes, etc. Compared with the well-known C/C + + log libraries such ...

Posted by php4om on Tue, 28 Dec 2021 17:31:53 +0100

Interprocess communication (IPC): nameless pipe and named pipe

Nameless pipe ❤️ ❤️ ❤️ Pipe is also called anonymous pipe. It is the oldest form of IPC (interprocess communication) in UNIX system. All UNIX systems support this communication mechanism.When the parent process calls the pipe function, the kernel will create a cache in the kernel space when executing the pipe function. This cache is the ...

Posted by mraza on Tue, 28 Dec 2021 17:22:29 +0100

C language -- storage categories and links

Storage category C language provides many different models or storage categories to store data in memory. Scope Scope describes the area in the application where identifiers are accessible. Let's start with a brief introduction: The scope of a C variable can be: Block scopeFunction scopeFunction prototype scopeFile scope A block is a c ...

Posted by mechew on Tue, 28 Dec 2021 12:44:54 +0100

Data structure (3. stack)

Catalog 1. Preface 2. Introduction of Stack Content 3. Sequence stack Chain Stack V. Summary 1. Preface This paper mainly introduces the related knowledge of stack and some basic operations of stack. The encapsulated sequential stack and chain stack code are given for direct replication. 2. Introduction of Stack Content A stack is a l ...

Posted by contex on Tue, 28 Dec 2021 04:57:20 +0100

Matrix Hub matrix operation Library C language

Matrix_hub Matrix operation Library - C language ##The lib of Matrix operation for C language. (matrix operation library – C language) Author: Amoiensis Email: Amoiensis@outlook.com Data:2020.02.12 More information: https://github.com/Amoiensis/Matrix_hub Source code download: release: https://github.com/Amoiensis/Matrix_hub/ ...

Posted by wiztek2000 on Tue, 28 Dec 2021 00:56:30 +0100

Memory allocation of C program under stm32 and Ubuntu

1, Experimental purpose Write a C program, review the concepts of global variables, local variables, heap and stack, and program and verify them in Ubuntu (x86) system and STM32(Keil) (stm32 sends the serial port printf information to the host computer serial port assistant through serial port). The allocation addresses of heap, stack, glo ...

Posted by ronz on Mon, 27 Dec 2021 23:21:40 +0100

Computer graphics experiment 3

1, Purpose of the experiment: 1) Be familiar with and master the principle and implementation process of five basic two-dimensional geometric transformations, including translation, proportion, symmetry, rotation and staggered cutting;2) Be familiar with and master the principle and implementation process of two-dimensional coincidence transfo ...

Posted by dombrorj on Mon, 27 Dec 2021 16:18:10 +0100

XDOJ-172 construction expression

title Construction expression category comprehensive time limit 1S Memory limit 100Kb Problem description Give an integer n representing the length of the sequence (3 < = n < = 9). Insert '+', '-', '' in the sequence 1, 2, 3... N to construct the expression. Inserting '' means that the first and second digits form an integer, for ...

Posted by damienmcd on Mon, 27 Dec 2021 11:10:10 +0100

[C language] online OJ questions - introduction training for beginners of Niuke network programming BC53-BC70 graphics

BC53 calculation of univariate quadratic equation describe Input the values of a, B and C from the keyboard, program, calculate and output the root of the univariate quadratic equation ax2 + bx + c = 0. When a = 0, output "not rectangular equation". When a ≠ 0, calculate and output the root of the equation according to the t ...

Posted by pixeltrace on Mon, 27 Dec 2021 04:19:22 +0100