citadel
About: Citadel is an advanced messaging and collaboration system for groupware and BBS applications (preferred OS: Linux).
  Fossies Dox: citadel.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

snprintf.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
Include dependency graph for snprintf.c:

Go to the source code of this file.

Functions

static int needed (const char *fmt, va_list argp)
 
int vsnprintf (char *buf, size_t max, const char *fmt, va_list argp)
 
int snprintf (char *buf, size_t max, const char *fmt,...)
 

Function Documentation

◆ needed()

static int needed ( const char *  fmt,
va_list  argp 
)
static

Definition at line 27 of file snprintf.c.

Referenced by vsnprintf().

◆ snprintf()

int snprintf ( char *  buf,
size_t  max,
const char *  fmt,
  ... 
)

Definition at line 69 of file snprintf.c.

References vsnprintf().

Referenced by assoc_file_name(), attach_extauth(), AutoGenerateEmailAddressForUser(), begin_session(), cdb_chmod_data(), check_xinetd_entry(), CM_SetFieldLONG(), cmd_asup(), cmd_conf(), cmd_cre8(), cmd_delf(), cmd_emsg(), cmd_greg(), cmd_kill(), cmd_mesg(), cmd_movf(), cmd_oidf(), cmd_open(), cmd_rdir(), cmd_regi(), cmd_seta(), cmd_setp(), cmd_setr(), cmd_slrp(), cmd_ucls(), cmd_uimg(), cmd_uopn(), convert_field(), convert_legacy_netcfg_files(), create_user(), ctdl_lockfile(), CtdlDoIHavePermissionToPostInThisRoom(), CtdlGetRelationship(), CtdlGetRoom(), CtdlInvtKick(), CtdlMailboxName(), CtdlMakeMessageLen(), CtdlRegisterServiceHook(), CtdlRenameRoom(), CtdlScheduleRoomForDeletion(), CtdlUserGoto(), datestring(), do_help_subst(), do_inbox_processing_for_user(), do_user_purge(), flush_individual_conversation(), ical_freebusy(), ical_send_out_invitations(), imap_create(), imap_load_part(), imap_namespace(), imap_pick_range(), imap_rename(), imap_set_seen_flags(), imap_starttls(), import_old_bio_files(), import_old_userpic_files(), inbox_do_fileinto(), inbox_do_msg(), iorarf_oneroom(), JournalRunQueueMsg(), listdeliver_do_msg(), MailboxName(), main(), miafvtur_backend(), mifm_backend(), migr_do_restore_meta(), migr_export_openids(), migr_export_rooms(), open_databases(), openid_create_user_via_ax(), OutputCtdlMsgHeaders(), pop3_update(), pop3client_one_mailbox(), PurgeRooms(), PurgeUsers(), qp_encode_email_addrs(), rbl_check(), rblcheck_backend(), rfc822_fetch_field(), send_message(), send_subscribe_confirmation_email(), send_unsubscribe_confirmation_email(), smtp_attempt_delivery(), smtp_webcit_preferences_hack(), spam_assassin(), strip_addresses_already_have(), trim_response(), validate_recipients(), vcard_new_from_rfc822_addr(), vcard_newuser(), vcard_upload_beforesave(), wiki_history(), wiki_rev(), wiki_upload_beforesave(), and xmpp_xml_end().

◆ vsnprintf()

int vsnprintf ( char *  buf,
size_t  max,
const char *  fmt,
va_list  argp 
)

Definition at line 48 of file snprintf.c.

References free(), malloc(), and needed().

Referenced by cprintf(), serv_printf(), and snprintf().