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
TLSRPT_SET_MALLOC_AND_FREE(3) tlsrpt_set_malloc_and_free TLSRPT_SET_MALLOC_AND_FREE(3)

tlsrpt_set_malloc_and_free - replaces the malloc implementation used within libtlsrpt

#include <tlsrpt.h>

void tlsrpt_set_malloc_and_free(void* (*malloc_function)(size_t size), void (*free_function)(void *ptr))

The tlsrpt_set_malloc_and_free function replaces the malloc implementation used within libtlsrpt. The replaced malloc is used within libtlsrpt only to allocate the struct tlsrpt_connection_t and struct tlsrpt_dr_t structures. Other malloc calls from within the C standard library are not affected.


Note

This function must be called before any of the allocating functions tlsrpt_open and tlsrpt_init_delivery_request is called! Otherwise one malloc implementation tries to free a pointer allocated by a different malloc implementation.

The tlsrpt_set_malloc_and_free function has no return value.

tlsrpt_open(3), tlsrpt_init_delivery_request(3)

Boris Lohner

Author(s).
2024-11-06 tlsrpt_set_malloc_and_free

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.