Clipmarks

introducing clip-to-blog

The easiest way to blog the interesting things you find on the web.
Supports Blogger, Wordpress, Typepad, Live Journal, Movable Type, and Vox.  learn more»
 
 
Post this to your blog
Blog Type:
Blog Username:
Blog Password:
Blog Url:
XML-RPC Url:
Copy and Paste the following code into a new blog post...
Login or Sign Up to save your blog settings.
Title of Post:
Remarks for Post:BBCode  No HTML 
 
 
 
See also:    Email it to friends
Clip Preview:
clipped from www.embedded.com

Using size_t appropriately can improve the portability, efficiency, or readability of your code. Maybe even all three.

Numerous functions in the Standard C library accept arguments or return values that represent object sizes in bytes. For example, the lone argument in malloc(n) specifies the size of the object to be allocated, and the last argument in memcpy(s1, s2, n) specifies the size of the object to be copied. The return value of strlen(s) yields the length of (the number of characters in) null-terminated character array s excluding the null character, which isn't exactly the size of s, but it's in the ballpark.

You might reasonably expect these parameters and return types that represent sizes to be declared with type int (possibly long and/or unsigned), but they aren't. Rather, the C standard declares them as type size_t. According to the standard, the declaration for malloc should appear in <stdlib.h> as something equivalent to:

void *malloc(size_t n);
 blog it

style options...

Include Clip before or after Remarks  
Customize Clip Colors
Border Background Font
Select Border Color
Select Background Color
Select Font Color
Video Size
If you are clipping video to your blog, and it is too wide, select this option.
Clipmarks Logo and Link
If you chose not to have the Clipmarks logo and link in this blog post, select "Don't include" here.
Line Breaks (Advanced)
If your blog software is configured to automatically convert new lines into HTML, select "Don't format" here to prevent Clipmarks from doing so.
Styles (Advanced)
By default, Clipmarks uses inline styles to format content in your blog post. If you would like to prevent this styling and customize the css rules yourself, select this option and copy this stylesheet into your blog template.