OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [newlib/] [libc/] [sys/] [linux/] [versionsort.c] - Blame information for rev 148

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 148 jeremybenn
#include <dirent.h>
2
#include <string.h>
3
 
4
extern int __strverscmp (char *, char *);
5
 
6
int
7
versionsort (const void *a, const void *b)
8
{
9
  return __strverscmp ((*(const struct dirent **)a)->d_name,
10
                       (*(const struct dirent **)b)->d_name);
11
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.