Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by randomprocess

  1. randomprocess

    passing address to sprintf()

    That was my impression (that it was valid). Problem is that it accesses the data rather than the address of the data. &buff2[2] and buff[2] are equivalent... and I did not think they should be... I very much did not think they should be... bug in the compiler? Thanks for the post.
  2. randomprocess

    passing address to sprintf()

    How do I do this guys.... char *buff2 = " "; // is malloc'd in real code. sprintf(&buff2[2],"xx"); // is sprintf(&buff2[2],"%02X",*ptr) in real code. printf("%s\n"); obviously trying to write "xx" to &buff2+2 and &buff2+3.

Part and Inventory Search

Back
Top