Re: encrypt and decrypt using encrypt(char block[64], int edflag)
From: David Schwartz (davids_at_webmaster.com)
Date: 07/26/04
- Next message: Andrei Voropaev: "Re: Symbol Tables and Backtraces in Linux"
- Previous message: Larry I Smith: "Re: uid (user authentication)"
- In reply to: rockwell: "encrypt and decrypt using encrypt(char block[64], int edflag)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 25 Jul 2004 20:58:20 -0700
"rockwell" <rockwell_001@yahoo.com> wrote in message
news:6bbb0df8.0407250040.59273efc@posting.google.com...
> int main(void)
> {
> char key[64];
> char txt[64]="myblockofdata";
>
> strcat(key, "thisismystring");
Oops. The 'strcat' function requires a pointer to a nul terminated
string for its first parameter. You want 'strcpy', which just needs a
pointer to space in which a string can be held.
DS
- Next message: Andrei Voropaev: "Re: Symbol Tables and Backtraces in Linux"
- Previous message: Larry I Smith: "Re: uid (user authentication)"
- In reply to: rockwell: "encrypt and decrypt using encrypt(char block[64], int edflag)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|