libalpm
Arch Linux Package Manager Library
Data Structures | Defines | Functions
pacsort.c File Reference
#include <errno.h>
#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <alpm.h>
Include dependency graph for pacsort.c:

Go to the source code of this file.

Data Structures

struct  buffer_t
struct  list_t
struct  options_t

Defines

#define DELIM   ' '

Functions

char * strndup (const char *s, size_t n)
 Copies a string.
int main (int argc, char *argv[])

Define Documentation

#define DELIM   ' '

Definition at line 28 of file pacsort.c.

Referenced by main().


Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 359 of file pacsort.c.

References list_t::count, DELIM, and list_t::list.

char* strndup ( const char *  s,
size_t  n 
)

Copies a string.

Returned string needs to be freed

Parameters:
sstring to be copied
nmaximum number of characters to copy
Returns:
pointer to the new string on success, NULL on error

Definition at line 58 of file pacsort.c.