Thread: Is that possible? strftime accept a std::string?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Aug 2019
    Location
    inside a singularity
    Posts
    308
    Read laserlight's comment. The c_str() method in your usage is not the way it works or is supposed to work.
    "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook, The Wizardry Compiled

  2. #2
    Registered User marcelo.br's Avatar
    Join Date
    Nov 2018
    Posts
    45
    Quote Originally Posted by Zeus_ View Post
    Read laserlight's comment. The c_str() method in your usage is not the way it works or is supposed to work.
    Yes, I am trying to understand, and it seems that the answer is that it is not possible to use std::string, the way I would like. I just really want to be sure.

    What's your answer to that? Is it possible or not?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 06-17-2018, 09:19 PM
  2. Using == to accept string using array
    By libchk in forum C Programming
    Replies: 4
    Last Post: 08-30-2011, 07:13 PM
  3. Accept a string with newline
    By perrrson in forum C Programming
    Replies: 2
    Last Post: 10-22-2010, 01:16 PM
  4. strftime function
    By pv2010 in forum C Programming
    Replies: 1
    Last Post: 04-14-2010, 08:33 AM
  5. Problem with strftime
    By Elemento in forum C Programming
    Replies: 2
    Last Post: 03-02-2005, 06:35 PM

Tags for this Thread