XMMS2
Functions
utils.c File Reference

Miscellaneous internal utility functions. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <xmms_configuration.h>
#include <xmmsc/xmmsc_util.h>
#include <xmmscpriv/xmmsc_util.h>

Functions

const char * xmms_default_ipcpath_get (char *buf, int len)
 Get the default connection path.
 
char * x_vasprintf (const char *fmt, va_list args)
 vsprintf, but with x_new allocated result
 
char * x_asprintf (const char *fmt,...)
 sprintf, but with x_new allocated result
 

Detailed Description

Miscellaneous internal utility functions.

Function Documentation

◆ x_asprintf()

char * x_asprintf ( const char * fmt,
... )

sprintf, but with x_new allocated result

◆ x_vasprintf()

char * x_vasprintf ( const char * fmt,
va_list args )

vsprintf, but with x_new allocated result

Referenced by x_asprintf().

◆ xmms_default_ipcpath_get()

const char * xmms_default_ipcpath_get ( char * buf,
int len )

Get the default connection path.

Parameters
bufA char buffer
lenThe length of buf (XMMS_PATH_MAX is a good choice)
Returns
A pointer to buf, or NULL if an error occured.