Forums Programming Assignment Help How can I send mail from within a C program?

This topic contains 1 reply, has 1 voice, and was last updated by  Aakanksha 7 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1294

    Aakanksha
    Participant

    How can I send mail from within a C program?

    #9854

    Aakanksha
    Participant

    If you can figure out how to send characters to the device at all , it’s easy enough to send escape sequences. In ASCII, the ESC code is 033 (27 decimal), so code like

    fprintf(ofd, “33[J”);

    sends the sequence ESC [ J .

    Some programmers prefer to parameterize the ESC code, like this:

    #define ESC 033

    fprintf(ofd, “%c[J”, ESC);

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.