GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
assign(3) FreeBSD Library Functions Manual assign(3)

assign - assign an integer value, check for truncation

#include <libowfat/rangecheck.h>

int assign(dest,a);

If a and dest have the same type, or the value of a is representable in the type of dest, do dest=a and return 0.

Otherwise, return 1.

Note: This is a macro, so dest does not have to be a pointer.

In the multiplication functions, a return value of 1 signals success and 0 failure. In add_of, sub_of and assign it's the other way around.

add_of(3), sub_of(3), imult16(3), umult16(3), imult32(3), umult32(3), imult64(3), umult64(3)

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.