- * unsigned char buffer[256];
- * silc_global_set_va("somebuf", sizeof(buffer), NULL, FALSE);
+ * silc_global_set_var("somebuf", 256, NULL, FALSE);
* If `tls' is FALSE the variable is visible to all threads in the process.
* If it is TRUE the variable is visible only in the current thread. The
* variable can be retrieved using the same name by calling the
* If `tls' is FALSE the variable is visible to all threads in the process.
* If it is TRUE the variable is visible only in the current thread. The
* variable can be retrieved using the same name by calling the
*
* Returns NULL and sets silc_errno if the variable could not be added, or
* a pointer to the added variable otherwise.
*
* Returns NULL and sets silc_errno if the variable could not be added, or
* a pointer to the added variable otherwise.
- * unsigned char buffer[256];
- * silc_global_set_va("somebuf", sizeof(buffer), NULL, FALSE);
+ * silc_global_set_var("somebuf", 256, NULL, FALSE);
- * silc_global_set_va("somestruct", sizeof(*context), NULL, TRUE);
+ * silc_global_set_var("somestruct", sizeof(*context), NULL, TRUE);
*
* // Retrieve the context
* context = silc_global_get_var("somestruct", TRUE);
*
* // Retrieve the context
* context = silc_global_get_var("somestruct", TRUE);
* deleted, FALSE if such variable does not exist and sets silc_errno.
*
* If variable is not deleted before the process or thread is destroyed
* deleted, FALSE if such variable does not exist and sets silc_errno.
*
* If variable is not deleted before the process or thread is destroyed