# Category: Function

• ## Meaning of a function wrapper in python exposure

http://wiki.c2.com/?FunctionWrapper https://wiki.python.org/moin/FunctionWrappers

• ## notes on and related to umask

umask – set file mode creation mask #include <sys/types.h> #include <sys/stat.h> mode_t umask(mode_t mask); Binary Number ————–> Decimal Number Abstraction Decide the required result to decide the needed mask. Binary Number ——————-> Resultant Binary ANDing with mask

• ## How to write an algorithm to do a binary to decimal conversion ?

/* part of work copied from http://www.sanfoundry.com/c-program-binary-number-into-decimal/ */ #include <stdio.h> btd() { int num, binary_val, decimal_val = 0, base = 1, rem; printf(“Enter a binary number : “); scanf(“%d”,&num); binary_val = num; while ( num > 0 ) { rem = num % 10; decimal_val = decimal_val + rem * base; num = num /…

• ## posix_openpt – open a pseudoterminal device

FUNCTION IMPLEMENTATION int posix_openpt(int flags) { return open(“/dev/ptmx”, flags); } stitched (P) TO : A Model using the Function [ posix_openpt ]

• ## Maths : What is a Function : y=f(x)

commandline session and notes related may be engineering functions related. suppose y=f(x). y = output. suppose i equate y to ls ls is a GNU command. ls contains different methods(ingredients) which form ls command. suppose i write ls = f (-a,-i,-l,…) different cases : 1. y = -a 2. y = -al 3. y =…