• Re: Public Service Announcement: Please use /GF with Visual Studiowhen you want to collapse constant strings!

    From makendo@[email protected] to comp.lang.c,comp.os.ms-windows.programmer.win32 on Tue Oct 27 13:17:18 2026
    From Newsgroup: comp.lang.c

    When you want to use == to compare strings such as "a", with "b" because
    all your strings are constants, please remember to add /GF to your
    CL.EXE command line.  I have no idea how to do this in the IDE, but I'm
    sure you'll figure it out if you really have to.

    I thought it is common sense that == would compare addresses for
    strings, and everyone compares string equality using strcmp(...) == 0, strncmp(...) == 0 and memcmp(...) == 0? (and of course with
    #include <string.h>)
    --- Synchronet 3.22a-Linux NewsLink 1.2