Explorar el Código

* Exported shuffleArray()

svn: 1431
Bryan Drewery hace 21 años
padre
commit
c08456c78a
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. 1 1
      src/misc.c
  2. 1 0
      src/misc.h

+ 1 - 1
src/misc.c

@@ -910,7 +910,7 @@ void showhelp(int idx, struct flag_record *flags, char *string)
 }
 
 /* Arrange the N elements of ARRAY in random order. */
-static void shuffleArray(char *array[], size_t n)
+void shuffleArray(char *array[], size_t n)
 {
   size_t j = 0;
   char *temp = NULL;

+ 1 - 0
src/misc.h

@@ -17,6 +17,7 @@ void restart(int) __attribute__((noreturn));
 int coloridx(int);
 const char *color(int, int, int);
 void shuffle(char *, char *);
+void shuffleArray(char **, size_t);
 void showhelp(int, struct flag_record *, char *);
 char *replace(const char *, const char *, const char *);
 int goodpass(char *, int, char *);