Cx51 Standard Library Program Attribute Description

Publisher:ByteChaserLatest update time:2016-08-03 Source: eefocusKeywords:Cx51 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
String Operations STRING.H 

strcat concatenates two stringsstrchr
reentrant returns a pointer to the first occurrence of a specified character in one stringstrcmp reentrant
compares two stringsstrcpy
reentrant copies one string to anotherstrcspn returns the index of the first character
in one string that matches any character in the second stringstrlen reentrant string lengthstrncat concatenates a specified number of characters from one string to anotherstrncmp compares a specified number of characters from two stringsstrncpy copies a specified number of characters from one string to anotherstrpbrk returns a pointer to the first character in one string that matches any character in the second stringstrpos reentrant returns the index of the first occurrence of a specified character in a stringstrrchr reentrant returns a pointer to the last occurrence of a specified character in a stringstrrpbrk returns a pointer to the last character in one string that matches any character in the second stringstrrpos reentrant returns the index of the last occurrence of a specified character in a stringstrspn returns the index of the first character in one string that does not match any character in the second stringstrstr returns a pointer to a substring in one string that is the same as another














Buffer Operations

STRING.H
memchr Reentrant Returns the pointer to the first occurrence of a specified character in a buffer
memcmp Reentrant Compares a given number of characters from two different buffers
memcpy Reentrant Copies a specified number of data from one buffer to another memmove
Reentrant Copies a specified number of data from one buffer to another memset
Reentrant Initializes a specified number of data bytes in a buffer to a specified character value

Character conversion and classification CTYPE.H
 isalnum Reentrant Whether it is an alphabetic or numeric character
isalpha Reentrant Whether it is an alphabetic character
iscntrl Reentrant Whether it is a control character
isdigit Reentrant Whether it is a decimal number
isgraph Reentrant Whether it is a printable character other than space
islower Reentrant Whether it is a lowercase alphabetic character
isprint Reentrant Whether it is a printable character
ispunct Reentrant Whether it is a punctuation character
isspace Reentrant Whether it is a space
isupper Reentrant Whether it is an uppercase alphabetic character
isxdigit Reentrant Whether it is a hexadecimal number
toascii Reentrant Convert a character to an ASCII code toint Reentrant
Convert a hexadecimal number to a decimal number
tolower Reentrant Test a character if it is uppercase and convert it to lowercase
_tolower Reentrant Unconditionally Convert a character to lowercase
toupper Reentrant Test a character if it is uppercase and convert it to lowercase
_toupper Reentrant Unconditionally Convert a character to uppercase

Data conversionSTDLIB.H 
abs Reentrant to get the absolute value of an integer typeatof
/atof517 Convert a string to a floatatoi
Convert a string to an intatol
Convert a string to a longcabs
Reentrant to get the absolute value of a character typelabs Reentrant to
get the absolute value of a long typestrtod
/strtod Convert a string to a floatstrtol
Convert a string to a longstrtoul
Convert a string to an unsigned long

Keywords:Cx51 Reference address:Cx51 Standard Library Program Attribute Description

Previous article:Principle of 51 MCU decoding infrared remote control
Next article:51 MCU Programming - Virtual Serial Port

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号