UsageEnvironment/include/strDup.hh File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

char * strDup (char const *str)
char * strDupSize (char const *str)


Function Documentation

char* strDup ( char const *  str  ) 

Definition at line 24 of file strDup.cpp.

References NULL.

Referenced by QuickTimeFileSink::addAtom_hdlr2(), UserAuthenticationDatabase::addUserRecord(), Scope::assign(), BasicHashTable::assignKey(), Authenticator::assignRealmAndNonce(), Authenticator::assignUsernameAndPassword(), MPEG4ESVideoRTPSink::auxSDPLine(), AMRAudioRTPSink::auxSDPLine(), ByteStreamMultiFileSource::ByteStreamMultiFileSource(), SIPClient::createAuthenticatorString(), RTSPClient::createAuthenticatorString(), createRangeString(), createScaleString(), RTSPClient::describeURL(), FileServerMediaSubsession::FileServerMediaSubsession(), FileSink::FileSink(), ServerMediaSession::generateSDPDescription(), SIPClient::getResponseCode(), H264VideoRTPSink::H264VideoRTPSink(), RTSPServer::RTSPClientSession::handleCmd_PLAY(), RTSPServer::RTSPClientSession::handleCmd_SETUP(), MediaSession::initializeWithSDP(), SIPClient::invite(), SIPClient::invite1(), SIPClient::inviteWithPassword(), Locale::Locale(), MediaSession::lookupPayloadFormat(), MediaSession::MediaSession(), MPEG1or2FileServerDemux::MPEG1or2FileServerDemux(), MPEG4GenericRTPSink::MPEG4GenericRTPSink(), MPEG4GenericRTPSource::MPEG4GenericRTPSource(), RTSPClient::openConnectionFromURL(), parseAuthorizationHeader(), parseCLine(), RTSPClient::parseGetParameterHeader(), RTSPClient::parseRTSPURLUsernamePassword(), MediaSubsession::parseSDPAttribute_control(), MediaSession::parseSDPAttribute_control(), MediaSubsession::parseSDPAttribute_fmtp(), MediaSubsession::parseSDPAttribute_rtpmap(), MediaSession::parseSDPAttribute_type(), MediaSession::parseSDPLine_i(), MediaSession::parseSDPLine_s(), SIPClient::parseSIPURLUsernamePassword(), parseSPropParameterSets(), parseTransportHeader(), RTSPClient::parseTransportResponse(), ServerMediaSubsession::rangeSDPLine(), SIPClient::reset(), RTPSink::rtpmapLine(), RTSPServer::rtspURLPrefix(), PassiveServerMediaSubsession::sdpLines(), RTSPClient::sendOptionsCmd(), ServerMediaSession::ServerMediaSession(), OnDemandServerMediaSubsession::setSDPLinesFromRTPSink(), RTSPClient::setupMediaSubsession(), SimpleRTPSink::SimpleRTPSink(), SIPClient::SIPClient(), SubstreamDescriptor::SubstreamDescriptor(), and ServerMediaSubsession::trackId().

00024                               {
00025   if (str == NULL) return NULL;
00026   size_t len = strlen(str) + 1;
00027   char* copy = new char[len];
00028 
00029   if (copy != NULL) {
00030     memcpy(copy, str, len);
00031   }
00032   return copy;
00033 }

char* strDupSize ( char const *  str  ) 

Definition at line 35 of file strDup.cpp.

References NULL.

Referenced by base64Decode(), RTSPClient::checkForAuthenticationFailure(), SIPClient::getResponseCode(), MediaSession::initializeWithSDP(), parseAuthorizationHeader(), parseCLine(), RTSPClient::parseRTPInfoHeader(), MediaSubsession::parseSDPAttribute_control(), MediaSession::parseSDPAttribute_control(), MediaSubsession::parseSDPAttribute_fmtp(), MediaSubsession::parseSDPAttribute_rtpmap(), MediaSession::parseSDPAttribute_type(), MediaSession::parseSDPLine_i(), MediaSession::parseSDPLine_s(), parseSourceFilterAttribute(), parseTransportHeader(), and RTSPClient::parseTransportResponse().

00035                                   {
00036   if (str == NULL) return NULL;
00037   size_t len = strlen(str) + 1;
00038   char* copy = new char[len];
00039 
00040   return copy;
00041 }


Generated on Tue Oct 7 15:39:29 2008 for live by  doxygen 1.5.2