[Lug-Nuts] C problems

From: Brian Lavender (brian@brie.com)
Date: Thu Oct 21 1999 - 17:44:12 PDT


I am trying to get this simple C program to work and no go. What
am I doing wrong?

/* Filename: crypt_test.c
 */

#include <stdio.h>
#define _XOPEN_SOURCE
#include <unistd.h>

int main (void)
{

    char input[255];
    char output[255];
    char salt[2];

    strcpy(salt,"ab");
    strcpy(input,"My blue heaven");

    output = crypt(input, "AB");

    printf("Hello crypt %s \n", output);
}

-- 
Brian Lavender
http://www.brie.com/brian/



This archive was generated by hypermail 2b29 : Fri Feb 25 2000 - 14:29:07 PST