<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div dir="ltr"><span>Salut,</span></div><div dir="ltr"><span><br></span></div><div dir="ltr" id="yui_3_16_0_1_1426407546621_33875"><span id="yui_3_16_0_1_1426407546621_33874">E ok să folosim în loc, alocare + memcpy() ?</span></div><div dir="ltr" id="yui_3_16_0_1_1426407546621_33873"><span><br></span></div><div dir="ltr" id="yui_3_16_0_1_1426407546621_33052"><span>Mulțumesc,</span></div><div dir="ltr" id="yui_3_16_0_1_1426407546621_33051"><span>Bogdan</span></div> <br><div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font size="2" face="Arial"> On Sunday, March 15, 2015 11:49 AM, Razvan Crainea via so <so@cursuri.cs.pub.ro> wrote:<br> </font> </div> <br><br> <div class="y_msg_container"><div id="yiv3223706357"><div><div dir="ltr"><br clear="none"><br clear="none"><div class="yiv3223706357yqt9964337854" id="yiv3223706357yqtfd35589"><div class="yiv3223706357gmail_quote">On Sun, Mar 15, 2015 at 11:37 AM Stefania Ghita <<a rel="nofollow" shape="rect" ymailto="mailto:stefania.alexandra.ghita@gmail.com" target="_blank" href="mailto:stefania.alexandra.ghita@gmail.com">stefania.alexandra.ghita@gmail.com</a>> wrote:<br clear="none"><blockquote class="yiv3223706357gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div dir="ltr"><div class="yiv3223706357gmail_extra"><div class="yiv3223706357gmail_quote">2015-03-14 22:59 GMT+02:00 Razvan Crainea via so <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:so@cursuri.cs.pub.ro" target="_blank" href="mailto:so@cursuri.cs.pub.ro">so@cursuri.cs.pub.ro</a>></span>:<br clear="none"></div></div></div><div dir="ltr"><div class="yiv3223706357gmail_extra"><div class="yiv3223706357gmail_quote"><blockquote class="yiv3223706357gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;"><div dir="ltr"><br clear="none"><br clear="none"><div class="yiv3223706357gmail_quote"><span>On Sat, Mar 14, 2015 at 10:40 PM Adrian Stanciu via so <<a rel="nofollow" shape="rect" ymailto="mailto:so@cursuri.cs.pub.ro" target="_blank" href="mailto:so@cursuri.cs.pub.ro">so@cursuri.cs.pub.ro</a>> wrote:<br clear="none"></span><blockquote class="yiv3223706357gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;">2015-03-14 22:16 GMT+02:00 Marius-Cristian E?EANU via so <<a rel="nofollow" shape="rect" ymailto="mailto:so@cursuri.cs.pub.ro" target="_blank" href="mailto:so@cursuri.cs.pub.ro">so@cursuri.cs.pub.ro</a>>:<br clear="none">
> Salut ,<br clear="none">
><br clear="none">
> Avem voie sa folosim strdup ?<br clear="none">
><br clear="none">
<br clear="none">
Salut Cristi,<br clear="none">
<br clear="none">
Puteți folosi strdup() și alte funcții pe șiruri de caractere din string.h.<br clear="none"><br clear="none"></blockquote><div>Salut!</div><div><br clear="none"></div><div>De fapt, pe Windows strdup() dă un warning, și conform regulamentului[1] veti pierde 0.2 puncte din punctajul temei. Ar trebui să evitați folosirea lui.</div><div><br clear="none"></div><div>[1] <a rel="nofollow" shape="rect" target="_blank" href="http://ocw.cs.pub.ro/courses/so/teme/general#lista_depunctari">http://ocw.cs.pub.ro/courses/so/teme/general#lista_depunctari</a></div></div></div>
<br clear="none"></blockquote></div></div></div><div dir="ltr"><div class="yiv3223706357gmail_extra"><div class="yiv3223706357gmail_quote"><blockquote class="yiv3223706357gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;">_______________________________________________<br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://ocw.cs.pub.ro/courses/so/info/lista-discutii">http://ocw.cs.pub.ro/courses/so/info/lista-discutii</a><br clear="none"></blockquote></div><br clear="none"><br clear="none"><div>Bună,<br clear="none"><br clear="none"></div><div>Putem folosi <span><span>/D_CRT_NONSTDC_NO_DEPRECATE pentru a evita acel warning?</span></span></div></div></div></blockquote><div><br clear="none"></div><div>Bună, Ștefania!</div><div><br clear="none"></div><div>Conform regulamentului, nu aveți voie să folosiți alte definiri în afară de /D_CRT_SECURE_NO_DEPRECATE. Deci nu puteți folosi /D_CRT_NONSTDC_NO_DEPRECATE.</div><div><br clear="none"></div><div>Spor!</div></div></div></div></div></div><br><div class="yqt9964337854" id="yqtfd73581">_______________________________________________<br clear="none"><a shape="rect" href="http://ocw.cs.pub.ro/courses/so/info/lista-discutii" target="_blank">http://ocw.cs.pub.ro/courses/so/info/lista-discutii</a></div><br><br></div> </div> </div> </div></div></body></html>