Linux Manuals session 3

Section 3: library functions

  • |

    free (3) Linux Manual Page

    NAME malloc, free, calloc, realloc, reallocarray – allocate and free dynamic memory SYNOPSIS #include <stdlib.h> void *malloc(size_t size); void free(void *ptr); void *calloc(size_t nmemb, size_t size); void *realloc(void *ptr, size_t size); void *reallocarray(void *ptr, size_t nmemb, size_t size); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): reallocarray():     Since glibc 2.29:         _DEFAULT_SOURCE     Glibc 2.28 and earlier:…

  • |

    fread_unlocked (3) Linux Manual Page

    NAME getc_unlocked, getchar_unlocked, putc_unlocked, putchar_unlocked – nonlocking stdio functions SYNOPSIS #include <stdio.h> int getc_unlocked(FILE *stream); int getchar_unlocked(void); int putc_unlocked(int c, FILE *stream); int putchar_unlocked(int c); void clearerr_unlocked(FILE *stream); int feof_unlocked(FILE *stream); int ferror_unlocked(FILE *stream); int fileno_unlocked(FILE *stream); int fflush_unlocked(FILE *stream); int fgetc_unlocked(FILE *stream); int fputc_unlocked(int c, FILE *stream); size_t fread_unlocked(void *ptr, size_t size, size_t n,…

  • |

    fread (3) Linux Manual Page

    NAME fread, fwrite – binary stream input/output SYNOPSIS #include <stdio.h> size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream); size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream); DESCRIPTION The function fread() reads nmemb items of data, each size bytes long, from the stream pointed to by stream, storing them at the location given…

  • |

    fractionsPerUnit (3) Linux Manual Page

    QuantLib::Currency – Currency specification Synopsis #include <ql/currency.hpp> Inherited by ARSCurrency, ATSCurrency, AUDCurrency, BDTCurrency, BEFCurrency, BGLCurrency, BRLCurrency, BYRCurrency, CADCurrency, CHFCurrency, CLPCurrency, CNYCurrency, COPCurrency, CYPCurrency, CZKCurrency, DEMCurrency, DKKCurrency, EEKCurrency, ESPCurrency, EURCurrency, FIMCurrency, FRFCurrency, GBPCurrency, GRDCurrency, HKDCurrency, HUFCurrency, IEPCurrency, ILSCurrency, INRCurrency, IQDCurrency, IRRCurrency, ISKCurrency, ITLCurrency, JPYCurrency, KRWCurrency, KWDCurrency, LTLCurrency, LUFCurrency, LVLCurrency, MTLCurrency, MXNCurrency, NLGCurrency, NOKCurrency, NPRCurrency, NZDCurrency, PEHCurrency,…

  • |

    fraction_ (3) Linux Manual Page

    NAME QuantLib::PagodaOption – Roofed Asian option on a number of assets. SYNOPSIS #include <ql/instruments/pagodaoption.hpp> Inherits QuantLib::MultiAssetOption. Classes class engine Pagoda-option engine base class Public Member Functions PagodaOption (const std::vector< Date > &fixingDates, Real roof, Real fraction) void setupArguments (PricingEngine::arguments *) const Protected Attributes std::vector< Date > fixingDates_ Real roof_ Real fraction_ Detailed Description Roofed Asian…

  • |

    fractionSymbol (3) Linux Manual Page

    QuantLib::Currency – Currency specification Synopsis #include <ql/currency.hpp> Inherited by ARSCurrency, ATSCurrency, AUDCurrency, BDTCurrency, BEFCurrency, BGLCurrency, BRLCurrency, BYRCurrency, CADCurrency, CHFCurrency, CLPCurrency, CNYCurrency, COPCurrency, CYPCurrency, CZKCurrency, DEMCurrency, DKKCurrency, EEKCurrency, ESPCurrency, EURCurrency, FIMCurrency, FRFCurrency, GBPCurrency, GRDCurrency, HKDCurrency, HUFCurrency, IEPCurrency, ILSCurrency, INRCurrency, IQDCurrency, IRRCurrency, ISKCurrency, ITLCurrency, JPYCurrency, KRWCurrency, KWDCurrency, LTLCurrency, LUFCurrency, LVLCurrency, MTLCurrency, MXNCurrency, NLGCurrency, NOKCurrency, NPRCurrency, NZDCurrency, PEHCurrency,…

  • |

    fputws_unlocked (3) Linux Manual Page

    NAME getc_unlocked, getchar_unlocked, putc_unlocked, putchar_unlocked – nonlocking stdio functions SYNOPSIS #include <stdio.h> int getc_unlocked(FILE *stream); int getchar_unlocked(void); int putc_unlocked(int c, FILE *stream); int putchar_unlocked(int c); void clearerr_unlocked(FILE *stream); int feof_unlocked(FILE *stream); int ferror_unlocked(FILE *stream); int fileno_unlocked(FILE *stream); int fflush_unlocked(FILE *stream); int fgetc_unlocked(FILE *stream); int fputc_unlocked(int c, FILE *stream); size_t fread_unlocked(void *ptr, size_t size, size_t n,…

  • |

    fputws (3) Linux Manual Page

    NAME fputws – write a wide-character string to a FILE stream SYNOPSIS #include <wchar.h> int fputws(const wchar_t *ws, FILE *stream); DESCRIPTION The fputws() function is the wide-character equivalent of the fputs(3) function. It writes the wide-character string starting at ws, up to but not including the terminating null wide character (L’

  • |

    fputwc_unlocked (3) Linux Manual Page

    NAME getc_unlocked, getchar_unlocked, putc_unlocked, putchar_unlocked – nonlocking stdio functions SYNOPSIS #include <stdio.h> int getc_unlocked(FILE *stream); int getchar_unlocked(void); int putc_unlocked(int c, FILE *stream); int putchar_unlocked(int c); void clearerr_unlocked(FILE *stream); int feof_unlocked(FILE *stream); int ferror_unlocked(FILE *stream); int fileno_unlocked(FILE *stream); int fflush_unlocked(FILE *stream); int fgetc_unlocked(FILE *stream); int fputc_unlocked(int c, FILE *stream); size_t fread_unlocked(void *ptr, size_t size, size_t n,…

  • |

    fputwc (3) Linux Manual Page

    NAME fputwc, putwc – write a wide character to a FILE stream SYNOPSIS #include <stdio.h> #include <wchar.h> wint_t fputwc(wchar_t wc, FILE *stream); wint_t putwc(wchar_t wc, FILE *stream); DESCRIPTION The fputwc() function is the wide-character equivalent of the fputc(3) function. It writes the wide character wc to stream. If ferror(stream) becomes true, it returns WEOF. If…

  • |

    fputs_unlocked (3) Linux Manual Page

    NAME getc_unlocked, getchar_unlocked, putc_unlocked, putchar_unlocked – nonlocking stdio functions SYNOPSIS #include <stdio.h> int getc_unlocked(FILE *stream); int getchar_unlocked(void); int putc_unlocked(int c, FILE *stream); int putchar_unlocked(int c); void clearerr_unlocked(FILE *stream); int feof_unlocked(FILE *stream); int ferror_unlocked(FILE *stream); int fileno_unlocked(FILE *stream); int fflush_unlocked(FILE *stream); int fgetc_unlocked(FILE *stream); int fputc_unlocked(int c, FILE *stream); size_t fread_unlocked(void *ptr, size_t size, size_t n,…

  • |

    fputs (3) Linux Manual Page

    NAME fputc, fputs, putc, putchar, puts – output of characters and strings SYNOPSIS #include <stdio.h> int fputc(int c, FILE *stream); int fputs(const char *s, FILE *stream); int putc(int c, FILE *stream); int putchar(int c); int puts(const char *s); DESCRIPTION fputc() writes the character c, cast to an unsigned char, to stream. fputs() writes the string…

  • |

    fputc_unlocked (3) Linux Manual Page

    NAME getc_unlocked, getchar_unlocked, putc_unlocked, putchar_unlocked – nonlocking stdio functions SYNOPSIS #include <stdio.h> int getc_unlocked(FILE *stream); int getchar_unlocked(void); int putc_unlocked(int c, FILE *stream); int putchar_unlocked(int c); void clearerr_unlocked(FILE *stream); int feof_unlocked(FILE *stream); int ferror_unlocked(FILE *stream); int fileno_unlocked(FILE *stream); int fflush_unlocked(FILE *stream); int fgetc_unlocked(FILE *stream); int fputc_unlocked(int c, FILE *stream); size_t fread_unlocked(void *ptr, size_t size, size_t n,…

  • |

    fputc (3) Linux Manual Page

    NAME fputc, fputs, putc, putchar, puts – output of characters and strings SYNOPSIS #include <stdio.h> int fputc(int c, FILE *stream); int fputs(const char *s, FILE *stream); int putc(int c, FILE *stream); int putchar(int c); int puts(const char *s); DESCRIPTION fputc() writes the character c, cast to an unsigned char, to stream. fputs() writes the string…

  • |

    fpurge (3) Linux Manual Page

    NAME fpurge, __fpurge – purge a stream SYNOPSIS /* unsupported */ #include <stdio.h> int fpurge(FILE *stream); /* supported */ #include <stdio.h> #include <stdio_ext.h> void __fpurge(FILE *stream); DESCRIPTION The function fpurge() clears the buffers of the given stream. For output streams this discards any unwritten output. For input streams this discards any input read from the…

  • |

    fprintf (3) Linux Manual Page

    NAME printf, fprintf, dprintf, sprintf, snprintf, vprintf, vfprintf, vdprintf, vsprintf, vsnprintf – formatted output conversion SYNOPSIS #include <stdio.h> int printf(const char *format, …); int fprintf(FILE *stream, const char *format, …); int dprintf(int fd, const char *format, …); int sprintf(char *str, const char *format, …); int snprintf(char *str, size_t size, const char *format, …); #include <stdarg.h>…

  • |

    fprint_variable (3) Linux Manual Page

    NAME snmp_pdu_add_variable, snmp_varlist_add_variable, snmp_add_null_var, snmp_clone_varbind, snmp_set_var_objid, snmp_set_var_value, snmp_set_var_typed_value, snmp_set_var_typed_integer, print_variable, fprint_variable, snprint_variable, print_value, fprint_value, snprint_value, snmp_free_var, snmp_free_varbind – netsnmp_varbind_api functions SYNOPSIS #include <net-snmp/varbind_api.h> Creation netsnmp_variable_list *snmp_pdu_add_variable( netsnmp_pdu *pdu, const oid *objid, size_t objidlen, u_char type, const void *value, size_t len); netsnmp_variable_list *snmp_varlist_add_variable( netsnmp_variable_list *varlist, const oid *objid, size_t objidlen, u_char type, const void *value, size_t…

  • |

    fprint_value (3) Linux Manual Page

    NAME snmp_pdu_add_variable, snmp_varlist_add_variable, snmp_add_null_var, snmp_clone_varbind, snmp_set_var_objid, snmp_set_var_value, snmp_set_var_typed_value, snmp_set_var_typed_integer, print_variable, fprint_variable, snprint_variable, print_value, fprint_value, snprint_value, snmp_free_var, snmp_free_varbind – netsnmp_varbind_api functions SYNOPSIS #include <net-snmp/varbind_api.h> Creation netsnmp_variable_list *snmp_pdu_add_variable( netsnmp_pdu *pdu, const oid *objid, size_t objidlen, u_char type, const void *value, size_t len); netsnmp_variable_list *snmp_varlist_add_variable( netsnmp_variable_list *varlist, const oid *objid, size_t objidlen, u_char type, const void *value, size_t…

  • |

    fprint_objid (3) Linux Manual Page

    NAME add_mibdir, netsnmp_init_mib, shutdown_mib, netsnmp_read_module, read_mib, read_all_mibs, add_module_replacement, snmp_set_mib_errors, snmp_set_mib_warnings, snmp_set_save_descriptions, read_objid, snmp_parse_oid, get_module_node, print_mib, print_objid, fprint_objid, snprint_objid, print_description, fprint_description, snprint_description – netsnmp_mib_api functions SYNOPSIS #include <net-snmp/mib_api.h> Initialisation and Shutdown int add_mibdir(const char *dirname); void netsnmp_init_mib(void); void shutdown_mib(void); Reading and Parsing MIBs struct tree *netsnmp_read_module(const char *name); struct tree *read_mib(const char *filename); struct tree *read_all_mibs(void);…

  • |

    fprint_description (3) Linux Manual Page

    NAME add_mibdir, netsnmp_init_mib, shutdown_mib, netsnmp_read_module, read_mib, read_all_mibs, add_module_replacement, snmp_set_mib_errors, snmp_set_mib_warnings, snmp_set_save_descriptions, read_objid, snmp_parse_oid, get_module_node, print_mib, print_objid, fprint_objid, snprint_objid, print_description, fprint_description, snprint_description – netsnmp_mib_api functions SYNOPSIS #include <net-snmp/mib_api.h> Initialisation and Shutdown int add_mibdir(const char *dirname); void netsnmp_init_mib(void); void shutdown_mib(void); Reading and Parsing MIBs struct tree *netsnmp_read_module(const char *name); struct tree *read_mib(const char *filename); struct tree *read_all_mibs(void);…