News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Inline string literals

Started by Vortex, September 24, 2017, 07:32:29 PM

Previous topic - Next topic

Vortex

Here is a macro example to specify inline string literals :

.386
.model flat,stdcall
option casemap:none

ExitProcess PROTO :DWORD
printf PROTO C :DWORD,:VARARG

include CstrMacro.asm

.code

start:

    invoke  printf,\
            @Cstr("Tab\tcharacter\ttest\nAnother line\qSample line\nEscaped symbol \\\n")

    invoke  ExitProcess,0

END start

ragdog