sprintf

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • smart1seo
    New Member
    • Feb 2012
    • 1

    sprintf

    what is the exact meaning of each word in the following?

    sprintf(filenam e, "%s/cn_norms.xmrg", datadir);
    i = read_xmrglike(f ilename, cn);


    Is 'datadir' supposed to be a directory that file 'cn_norms.xmrg' should be located?
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    Carefully read your documenetation for sprintf.

    sprintf is used to create strings and has nothing to do with files.

    The code you have posted makes no sense.

    Comment

    Working...