PCD
Returns:
Function:
No value.
The srand() function uses the argument as a seed for a new sequence of pseudo-
random numbers to be returned by subsequent calls to rand. If srand() is then
called with same seed value, the sequence of random numbers shall be repeated.
If rand is called before any call to srand() have been made, the same sequence
shall be generated as when srand() is first called with a seed value of 1.
Availability: All devices.
Requires:
Examples:
Example
Files:
Also See:
#INCLUDE <STDLIB.H>
srand(10);
I=rand();
None
rand()
STANDARD STRING FUNCTIONS( ) memchr( ) memcmp( ) strcat( )
strchr( ) strcmp( ) strcoll( ) strcspn( ) strerror( ) stricmp( ) strlen( )
strlwr( ) strncat( ) strncmp( ) strncpy( ) strpbrk( ) strrchr( ) strspn( )
strstr( ) strxfrm( )
Syntax:
ptr=strcat ( s1 , s2 )
ptr=strchr ( s1 , c )
ptr=strrchr ( s1 , c )
cresult=strcmp ( s1 , s2 )
iresult=strncmp ( s1 , s2 , n )
iresult=stricmp ( s1 , s2 )
ptr=strncpy ( s1 , s2 , n )
iresult=strcspn ( s1 , s2 )
iresult=strspn ( s1 , s2 )
iresult=strlen ( s1 )
ptr=strlwr ( s1 )
ptr=strpbrk ( s1 , s2 )
ptr=strstr ( s1 , s2 )
ptr=strncat( s1 , s2 )
iresult=strcoll( s1 , s2 )
res=strxfrm( s1 , s2 , n )
Concatenate s2 onto s1
Find c in s1 and return &s1[i]
Same but search in reverse
Compare s1 to s2
Compare s1 to s2 (n bytes)
Compare and ignore case
Copy up to n characters s2->s1
Count of initial chars in s1 not in s2
Count of initial chars in s1 also in s2
Number of characters in s1
Convert string to lower case
Search s1 for first char also in s2
Search for s2 in s1
Concatenates up to n bytes of s2 onto s1
Compares s1 to s2, both interpreted as
appropriate to the current locale.
Transforms maximum of n characters of s2 and
places them in s1, such that strcmp(s1,s2) will
give the same result as strcoll(s1,s2)
294
相关PDF资料
PCI-EXP-T42G5-N1 IP CORE PCI EXPRESS ORCA 4
PCM18XH2 PROCESSOR MODULE MPLAB-ICE 2000
PCM18XN0 PROCESSOR MODULE FOR ICE2000
PDA-B-24-615-E-2B1-1-C CIRCUIT BREAKER MAG 1P 15A
PFMF.260.2 PFMF PTC FUSE SMT 2.6A 1812
PFNF.200.2 PFNF PTC FUSE SMT 2A 1206
PFRY.375 PTC-FUSE RADIAL 72 VDC
PFSM.150.33.2 FUSE PTC 8A 15V FST-TRIP SMD
相关代理商/技术参数
PCD_09 制造商:MACOM 制造商全称:Tyco Electronics 功能描述:Low Profile PCB Relay PCD
PCD-00173-0C 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00173-0E 制造商:Molex 功能描述:Ethernet Cable Assembly
PCD-00173-0H 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00173-0K 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00174-0C 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY; Cable Length - Imperial:3ft; Cable Length - Metric:914.4mm; Connector Type A:RJ45 Plug; Connector Type B:RJ45 Plug; Jacket Color:Red; Approval Bodies:CSA / UL; Body Material:PVC; Cable Assembly Type:Ethernet ;RoHS Compliant: NA
PCD-00174-0E 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY; Cable Length - Imperial:3ft; Cable Length - Metric:914.4mm; Connector Type A:RJ45 Plug; Connector Type B:RJ45 Plug; Jacket Color:Grey; Approval Bodies:CSA / UL; Body Material:PVC; Cable Assembly Type:Ethernet;RoHS Compliant: NA
PCD-00174-0H 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY