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. More...
 
char * x_vasprintf (const char *fmt, va_list args)
 vsprintf, but with x_new allocated result More...
 
char * x_asprintf (const char *fmt,...)
 sprintf, but with x_new allocated result More...
 

Detailed Description

Miscellaneous internal utility functions.

Function Documentation

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

sprintf, but with x_new allocated result

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

vsprintf, but with x_new allocated result

Referenced by x_asprintf().

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.