Thread: Trouble properly using buffers for function

  1. #1
    Registered User
    Join Date
    Jul 2018
    Posts
    5

    Trouble properly using buffers for function

    Here is the function I am trying to run:

    insert
    Code:
    
    
    Code:
    int encrypt(
    unsigned char *cipher, unsigned long long *cipherlen,
    const unsigned char *plaintext, unsigned long long plaintextlen,
    const unsigned char *data, unsigned long long datalen,
    const unsigned char *seckey,
    const unsigned char *public,
    The error flags expected identifier before sizeof and expected ',' or '...' before sizeof
    Any suggestions?

  2. #2
    Registered User
    Join Date
    Jul 2018
    Posts
    5
    First time posting I made many mistakes so I reposted the question!

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    37,410
    You could try the traditional approach of posting code between [code][/code] tags, instead of being all hipster and using a table.

    Hint: Use "copy-as-text" and/or "paste-as-text" in your code editor / browser as appropriate.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    37,410
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Function not behaving properly
    By Moksha in forum C Programming
    Replies: 9
    Last Post: 01-19-2017, 01:50 PM
  2. delete function does not work properly...
    By fkmk in forum C Programming
    Replies: 5
    Last Post: 01-18-2014, 09:43 PM
  3. How to properly use a function?
    By Who in forum C Programming
    Replies: 2
    Last Post: 02-01-2013, 03:25 AM
  4. advise on how to properly use pow function
    By libchk in forum C Programming
    Replies: 12
    Last Post: 08-31-2011, 12:50 AM
  5. How to properly use a C function?
    By John_L in forum C Programming
    Replies: 4
    Last Post: 05-30-2008, 02:01 AM

Tags for this Thread