Object-oriented technology is the mainstream technology in the 90 's, all kinds of application software can make the software have higher quality if it constructs and penetrates the object-oriented style with object-oriented method. Object-oriented
Common string processing (cforlinux)-General Linux technology-Linux programming and kernel information. For details, refer to the following section. Prototype: extern int bcmp (const void * s1, const void * s2, int n );
Usage: # include
Function:
Telnetd is a Telnet server program
: Http://www.busybox.net/
Decompress the package and enter the busybox directory.
Make defconfig
Make
Make install
Then the _ install directory will be generated, which is the compiled executable file.
The source
1. Compare string size functions
1) Case Insensitive --- strcasecmp
Function prototype: Int strcasecmp (const char * S1, const char * S2 );
Function Description: Used to compare S1 and S2 strings. Differences in Case sensitivity are automatically
4. Deconstruction method Destroy
The method generates a lock on the resource and then releases the resource, and finally calls the inherited destroy method to release the Resourcestream. It is implemented as follows:
destructor
4. memccpy
Prototype: extern void * memccpy (void * dest, void * src, unsigned char ch, unsigned int count );
Usage: # include Function: the data is copied from the memory area indicated by src to the memory area indicated by dest. If the ch
Function: strcatPrototype:Char * strcat (char * dest, char * src );Function: add the src string to the end of dest (overwrite '\ 0' at the end of dest) and add' \ 0 '.Note: The memory areas specified by src and dest cannot overlap and dest must have
C string function Summary
1. bcmp
Prototype: extern int bcmp (const void * S1, const void * S2, int N );Usage: # include Function: Compares the first n Bytes of the string S1 and S2.NOTE: If S1 = S2 or n = 0, zero is returned; otherwise, a non-zero
1. bcmpPrototype: extern int bcmp (const void *S1, const void *s2, int n);Usage: #include Function: Compares the first n bytes of a string S1 and S2 for equalityDescription: Returns 0 for equality, otherwise returns a value other than 02.
Data transfer between channels of JAVA-4NIO, java-4niochannel
Reprinted: Self-Concurrent Programming Network ifeve.com
In Java NIO, if one of the two channels is FileChannel, you can directly transmit data from one channel (Translator's note:
1. In Java NIO, if one of the two channels is FileChannel, you can transfer the data directly from one channel (translator note: Channel Chinese translation channels) to another channel.(1) transferfrom ():The Transferfrom () method of the
Reprint please specify the original link, http://www.cnblogs.com/flyingcloude/p/6992215.htmlThese days often encounter memcpy these functions, for the memcpy function before the general role of some understanding, but in peacetime to write their own
Reprint: Self-concurrent programming network ifeve.comIn Java NiO, if one of the two channels is FileChannel, you can transfer the data directly from one channel (translator note: Channel Chinese translation channels) to another channel.Transferfrom
1. Prototype: extern char *strcpy (char *dest,char *src);Usage: #include function: Copy the null-terminated string from SRC to the array referred to by Dest.Description: The memory areas referred to by SRC and dest cannot overlap and dest must have
Java NiO provides a different way of doing IO than standard IO:
Channels and buffers (channels and buffers): Standard IO operates on byte streams and character streams, whereas NiO operates on channels (Channel) and buffers (buffer), which are
NFS Protocol
NFS (Network File system) is not a file system in the traditional sense, but rather a network protocol that accesses a remote file system. As shown in the TCP/IP protocol stack for the entire NFS service, NFS is the application layer
In Java NiO, if one of the two channels is FileChannel, you can transfer the data directly from one channel (translator note: Channel Chinese translation channels) to another channel.Transferfrom ()The Transferfrom () method of the FileChannel can
First, the documentA text file is read and written in the Unit of action. Text files can only be opened separately for reading or writing, and reading and writing on an open text file is not allowed at the same time.Second, the
In Java NiO, if one of the two channels is FileChannel, you can transfer the data directly from one channel (translator note: Channel Chinese translation channels) to another channel.Transferfrom ()The Transferfrom () method of the FileChannel can
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.