summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/binaries/obsolete/crypt/binaries-obsolete-des/build-spec/orig/uses-fcrypt.c
blob: d71a837a307f61140c31db742d66dc68ae6abbd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* This program uses the obsolete function 'fcrypt',
   which is an alias for 'crypt'.  */

#include <crypt.h>
#include <stdio.h>

/* The prototype may already have been removed from crypt.h.  */
extern char *fcrypt(const char *, const char *);

/* It may already not be possible to link new programs that use
   'fcrypt' without special magic.  */
#ifdef SYMVER
__asm__ (".symver fcrypt, fcrypt@" SYMVER);
#endif

int
main(void)
{
    puts(fcrypt("password", "Dn"));
    return 0;
}