Fri Jul 19 01:56:12 2024
EVENTS
 FREE
SOFTWARE
INSTITUTE

POLITICS
JOBS
MEMBERS'
CORNER

MAILING
LIST

NYLXS Mailing Lists and Archives
NYLXS Members have a lot to say and share but we don't keep many secrets. Join the Hangout Mailing List and say your peice.

DATE 2005-01-01

HANGOUT

2024-07-19 | 2024-06-19 | 2024-05-19 | 2024-04-19 | 2024-03-19 | 2024-02-19 | 2024-01-19 | 2023-12-19 | 2023-11-19 | 2023-10-19 | 2023-09-19 | 2023-08-19 | 2023-07-19 | 2023-06-19 | 2023-05-19 | 2023-04-19 | 2023-03-19 | 2023-02-19 | 2023-01-19 | 2022-12-19 | 2022-11-19 | 2022-10-19 | 2022-09-19 | 2022-08-19 | 2022-07-19 | 2022-06-19 | 2022-05-19 | 2022-04-19 | 2022-03-19 | 2022-02-19 | 2022-01-19 | 2021-12-19 | 2021-11-19 | 2021-10-19 | 2021-09-19 | 2021-08-19 | 2021-07-19 | 2021-06-19 | 2021-05-19 | 2021-04-19 | 2021-03-19 | 2021-02-19 | 2021-01-19 | 2020-12-19 | 2020-11-19 | 2020-10-19 | 2020-09-19 | 2020-08-19 | 2020-07-19 | 2020-06-19 | 2020-05-19 | 2020-04-19 | 2020-03-19 | 2020-02-19 | 2020-01-19 | 2019-12-19 | 2019-11-19 | 2019-10-19 | 2019-09-19 | 2019-08-19 | 2019-07-19 | 2019-06-19 | 2019-05-19 | 2019-04-19 | 2019-03-19 | 2019-02-19 | 2019-01-19 | 2018-12-19 | 2018-11-19 | 2018-10-19 | 2018-09-19 | 2018-08-19 | 2018-07-19 | 2018-06-19 | 2018-05-19 | 2018-04-19 | 2018-03-19 | 2018-02-19 | 2018-01-19 | 2017-12-19 | 2017-11-19 | 2017-10-19 | 2017-09-19 | 2017-08-19 | 2017-07-19 | 2017-06-19 | 2017-05-19 | 2017-04-19 | 2017-03-19 | 2017-02-19 | 2017-01-19 | 2016-12-19 | 2016-11-19 | 2016-10-19 | 2016-09-19 | 2016-08-19 | 2016-07-19 | 2016-06-19 | 2016-05-19 | 2016-04-19 | 2016-03-19 | 2016-02-19 | 2016-01-19 | 2015-12-19 | 2015-11-19 | 2015-10-19 | 2015-09-19 | 2015-08-19 | 2015-07-19 | 2015-06-19 | 2015-05-19 | 2015-04-19 | 2015-03-19 | 2015-02-19 | 2015-01-19 | 2014-12-19 | 2014-11-19 | 2014-10-19 | 2014-09-19 | 2014-08-19 | 2014-07-19 | 2014-06-19 | 2014-05-19 | 2014-04-19 | 2014-03-19 | 2014-02-19 | 2014-01-19 | 2013-12-19 | 2013-11-19 | 2013-10-19 | 2013-09-19 | 2013-08-19 | 2013-07-19 | 2013-06-19 | 2013-05-19 | 2013-04-19 | 2013-03-19 | 2013-02-19 | 2013-01-19 | 2012-12-19 | 2012-11-19 | 2012-10-19 | 2012-09-19 | 2012-08-19 | 2012-07-19 | 2012-06-19 | 2012-05-19 | 2012-04-19 | 2012-03-19 | 2012-02-19 | 2012-01-19 | 2011-12-19 | 2011-11-19 | 2011-10-19 | 2011-09-19 | 2011-08-19 | 2011-07-19 | 2011-06-19 | 2011-05-19 | 2011-04-19 | 2011-03-19 | 2011-02-19 | 2011-01-19 | 2010-12-19 | 2010-11-19 | 2010-10-19 | 2010-09-19 | 2010-08-19 | 2010-07-19 | 2010-06-19 | 2010-05-19 | 2010-04-19 | 2010-03-19 | 2010-02-19 | 2010-01-19 | 2009-12-19 | 2009-11-19 | 2009-10-19 | 2009-09-19 | 2009-08-19 | 2009-07-19 | 2009-06-19 | 2009-05-19 | 2009-04-19 | 2009-03-19 | 2009-02-19 | 2009-01-19 | 2008-12-19 | 2008-11-19 | 2008-10-19 | 2008-09-19 | 2008-08-19 | 2008-07-19 | 2008-06-19 | 2008-05-19 | 2008-04-19 | 2008-03-19 | 2008-02-19 | 2008-01-19 | 2007-12-19 | 2007-11-19 | 2007-10-19 | 2007-09-19 | 2007-08-19 | 2007-07-19 | 2007-06-19 | 2007-05-19 | 2007-04-19 | 2007-03-19 | 2007-02-19 | 2007-01-19 | 2006-12-19 | 2006-11-19 | 2006-10-19 | 2006-09-19 | 2006-08-19 | 2006-07-19 | 2006-06-19 | 2006-05-19 | 2006-04-19 | 2006-03-19 | 2006-02-19 | 2006-01-19 | 2005-12-19 | 2005-11-19 | 2005-10-19 | 2005-09-19 | 2005-08-19 | 2005-07-19 | 2005-06-19 | 2005-05-19 | 2005-04-19 | 2005-03-19 | 2005-02-19 | 2005-01-19 | 2004-12-19 | 2004-11-19 | 2004-10-19 | 2004-09-19 | 2004-08-19 | 2004-07-19 | 2004-06-19 | 2004-05-19 | 2004-04-19 | 2004-03-19 | 2004-02-19 | 2004-01-19 | 2003-12-19 | 2003-11-19 | 2003-10-19 | 2003-09-19 | 2003-08-19 | 2003-07-19 | 2003-06-19 | 2003-05-19 | 2003-04-19 | 2003-03-19 | 2003-02-19 | 2003-01-19 | 2002-12-19 | 2002-11-19 | 2002-10-19 | 2002-09-19 | 2002-08-19 | 2002-07-19 | 2002-06-19 | 2002-05-19 | 2002-04-19 | 2002-03-19 | 2002-02-19 | 2002-01-19 | 2001-12-19 | 2001-11-19 | 2001-10-19 | 2001-09-19 | 2001-08-19 | 2001-07-19 | 2001-06-19 | 2001-05-19 | 2001-04-19 | 2001-03-19 | 2001-02-19 | 2001-01-19 | 2000-12-19 | 2000-11-19 | 2000-10-19 | 2000-09-19 | 2000-08-19 | 2000-07-19 | 2000-06-19 | 2000-05-19 | 2000-04-19 | 2000-03-19 | 2000-02-19 | 2000-01-19 | 1999-12-19

Key: Value:

Key: Value:

MESSAGE
DATE 2005-01-25
FROM From: "Inker, Evan"
SUBJECT RE: [hangout] Simple C question

Check this out

strcopy.c

/* strcopy.c written by detour-at-metalshell.com
*
* example of a string copying function.
*
* http://www.metalshell.com/
*
*/

#include
#include

void strcopy(const char *, char *);

int main() {
char string1[] = "This is string1";
char string2[] = "This is string2";

strcopy(string1, string2);
printf("String2: %s", string2);
}

void strcopy(const char * str1, char * str2) {
int x = 0;

/* change the size of string2 to the size of string1 */
realloc(str2, sizeof(str1));

do {
str2[x] = str1[x];
} while (str1[x++] != '\0');

}


Regards,

Evan M. Inker (New York) x. 4615



-----Original Message-----
From: Martin, Jared [mailto:JMartin-at-dglaw.com]
Sent: Tuesday, January 25, 2005 2:28 PM
To: hangout-at-nylxs.com
Subject: [hangout] Simple C question



If I have three strings:
char *str1;
char str2[];
char str3[10];

how do I copy the info from str1 to str2?

how do I copy the info from str1 to str3? (I imagine it is the same, and I
realize I will loose data if strlen(str1)>10)

Thank you very much


Sincerely,
*****************************
Jared Martin
IT Desktop Support
Davis & Gilbert LLP
1740 Broadway
New York, NY 10019
Help Desk: 212-237-1500
Office: 212-237-1504
Cell: 646-773-4138
Fax: (212) 974-7023
*************************************




____________________________
NYLXS: New Yorker Free Software Users Scene
Fair Use -
because it's either fair use or useless....
NYLXS is a trademark of NYLXS, Inc


****************************************************************************
This message contains confidential information and is intended only
for the individual or entity named. If you are not the named addressee
you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed, arrive
late or incomplete, or contain viruses. The sender therefore does not
accept liability for any errors or omissions in the contents of this
message which arise as a result of e-mail transmission.
If verification is required please request a hard-copy version.
This message is provided for informational purposes and should not
be construed as an invitation or offer to buy or sell any securities or
related financial instruments.
GAM operates in many jurisdictions and is
regulated or licensed in those jurisdictions as required.
****************************************************************************

____________________________
NYLXS: New Yorker Free Software Users Scene
Fair Use -
because it's either fair use or useless....
NYLXS is a trademark of NYLXS, Inc

  1. 2005-01-31 From: "Martin, Jared" <JMartin-at-dglaw.com> Fw: [hangout] [visham-at-proexam.org: I will like to Register/And I will also like to lern more about this class]
  2. 2005-01-30 From: "P.Robert Marino" <rob-at-concord-hs.org> Re: [hangout] Re: Paid DOE Security Deployment Internship Job Description
  3. 2005-01-30 From: "rc" <ray-pub-at-rcn.com> Subject: [hangout] classes
  4. 2005-01-30 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [hangout] We should Celebrate!
  5. 2005-01-30 From: "Steve Milo" <slavik914-at-mrbrklyn.com> Subject: [hangout] Tax that funded the Spano-American war could be extended
  6. 2005-01-30 From: "Steve Milo" <slavik914-at-mrbrklyn.com> Re: [hangout] January 30, Sunday, Kings Games. Is anybody or everybody going to be there?
  7. 2005-01-30 swd <sderrick-at-optonline.net> Subject: [hangout] January 30, Sunday, Kings Games. Is anybody or everybody going to be
  8. 2005-01-30 From: "Steve Milo" <slavik914-at-mrbrklyn.com> Re: [hangout] Future might be looking brighter
  9. 2005-01-30 Ron Guerin <ron-at-vnetworx.net> Re: [hangout] Future might be looking brighter
  10. 2005-01-29 From: "Steve Milo" <slavik914-at-mrbrklyn.com> Re: [hangout] Future might be looking brighter
  11. 2005-01-29 Billy <billy-at-dadadada.net> Re: Fw: [hangout] [visham-at-proexam.org: I will like to Register/And
  12. 2005-01-29 Billy <billy-at-dadadada.net> Re: [hangout] Re: Paid DOE Security Deployment Internship Job Description
  13. 2005-01-28 From: "Martin, Jared" <JMartin-at-dglaw.com> Fw: [hangout] [visham-at-proexam.org: I will like to Register/And I will also like to lern more about this class]
  14. 2005-01-28 Ruben Safir Secretary NYLXS <ruben-at-mrbrklyn.com> Subject: [hangout] Future might be looking brighter
  15. 2005-01-27 Ruben Safir Secretary NYLXS <ruben-at-mrbrklyn.com> Subject: [hangout] [visham-at-proexam.org: I will like to Register/And I will also like to lern more about this class]
  16. 2005-01-27 From: "Inker, Evan" <EInker-at-gam.com> Subject: [hangout] MySQL installations targeted by Forbot worm variant
  17. 2005-01-27 From: "Inker, Evan" <EInker-at-gam.com> Subject: [hangout] Concerns mount over Lenovo's IBM deal
  18. 2005-01-27 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [hangout] New Cold Medication Restrictions will make them Pharmacy only
  19. 2005-01-27 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [hangout] I've been Robbed - NOT
  20. 2005-01-26 Ruben Safir Secretary NYLXS <ruben-at-mrbrklyn.com> Re: [hangout] Simple C question
  21. 2005-01-26 Billy <billy-at-dadadada.net> Re: [hangout] Simple C question
  22. 2005-01-26 Ruben Safir <ruben-at-mrbrklyn.com> Re: [hangout] Simple C question
  23. 2005-01-26 Ruben Safir <ruben-at-mrbrklyn.com> Re: [hangout] Simple C question
  24. 2005-01-25 From: "rc" <ray-pub-at-rcn.com> Subject: [hangout] FOSS Biz Solution Thoughts?
  25. 2005-01-25 From: "Martin, Jared" <JMartin-at-dglaw.com> RE: [hangout] Simple C question
  26. 2005-01-25 Steve Milo <slavik914-at-mrbrklyn.com> Re: [hangout] Simple C question
  27. 2005-01-25 Billy <billy-at-dadadada.net> Re: [hangout] Simple C question
  28. 2005-01-25 Billy <billy-at-dadadada.net> Re: [hangout] Simple C question
  29. 2005-01-25 James Linder <jhl-at-jlinder.com> Re: [hangout] Simple C question
  30. 2005-01-25 From: "Inker, Evan" <EInker-at-gam.com> RE: [hangout] Simple C question
  31. 2005-01-25 From: "Martin, Jared" <JMartin-at-dglaw.com> Subject: [hangout] Simple C question
  32. 2005-01-25 Ron Guerin <ron-at-vnetworx.net> Re: [hangout] Ron G.
  33. 2005-01-25 From: "Inker, Evan" <EInker-at-gam.com> Subject: [hangout] IBM goes silent on Linux desktop effort
  34. 2005-01-25 From: "Steve Milo" <slavik914-at-mrbrklyn.com> Subject: [hangout] Ron G.
  35. 2005-01-25 From: "Inker, Evan" <EInker-at-gam.com> Subject: [hangout] Flame Wars, Forks and Freedom
  36. 2005-01-24 From: "Inker, Evan" <EInker-at-gam.com> Subject: [hangout] VeriSign breaks silence on domain hijack
  37. 2005-01-23 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [hangout] Mama - don't let your kids grow up to be programers
  38. 2005-01-21 From: "Steve Milo" <slavik914-at-mrbrklyn.com> Subject: [hangout] Paging serge.
  39. 2005-01-20 From: "Inker, Evan" <EInker-at-gam.com> Subject: [hangout] A Take on the Workstation Market Today
  40. 2005-01-20 From: "Inker, Evan" <EInker-at-gam.com> Subject: [hangout] OS News of the Day - Jan 20, 2005
  41. 2005-01-20 From: "Steve Milo" <slavik914-at-mrbrklyn.com> Re: [hangout] FIX Protocol
  42. 2005-01-20 From: "Steve Milo" <slavik914-at-mrbrklyn.com> Subject: [hangout] FIX Protocol
  43. 2005-01-20 From: "Inker, Evan" <EInker-at-gam.com> RE: [hangout] NY Linux Users Grp. 27 Jan. Meeting: Elliotte Rusty
  44. 2005-01-20 From: "Steve Milo" <slavik914-at-mrbrklyn.com> Re: [hangout] NY Linux Users Grp. 27 Jan. Meeting: Elliotte Rusty Harold -on- Extensible Markup Language (XML)
  45. 2005-01-20 Ron Guerin <ron-at-vnetworx.net> Subject: [hangout] NY Linux Users Grp. 27 Jan. Meeting: Elliotte Rusty Harold -on-
  46. 2005-01-20 swd <sderrick-at-optonline.net> RE: [hangout] FIX Protocol
  47. 2005-01-19 From: "Inker, Evan" <EInker-at-gam.com> RE: [hangout] Staff Development and Organizational Capacity
  48. 2005-01-19 Ruben Safir <ruben-at-mrbrklyn.com> RE: [hangout] Staff Development and Organizational Capacity
  49. 2005-01-18 From: "Martin, Jared" <JMartin-at-dglaw.com> RE: [hangout] Staff Development and Organizational Capacity
  50. 2005-01-16 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [hangout] Lotus 1-2-3 Free Software
  51. 2005-01-14 From: "Inker, Evan" <EInker-at-gam.com> Subject: [hangout] FBI may scrap $170 million project
  52. 2005-01-13 From: "Inker, Evan" <EInker-at-gam.com> Subject: [hangout] Linux misperceptions the greatest challenge: Novell
  53. 2005-01-13 From: "Inker, Evan" <EInker-at-gam.com> Subject: [hangout] Red Hat, SuSE release Linux patches
  54. 2005-01-13 From: "Inker, Evan" <EInker-at-gam.com> Subject: [hangout] Red Hat tries again with Linux enthusiasts
  55. 2005-01-13 From: "Inker, Evan" <EInker-at-gam.com> Subject: [hangout] Big Brother Bloomberg is watching.
  56. 2005-01-13 From: "Steve Milo" <slavik914-at-mrbrklyn.com> Subject: [hangout] Paging Serge.
  57. 2005-01-13 Ruben Safir Secretary NYLXS <ruben-at-mrbrklyn.com> Re: [hangout] More wonderful BS from Columbia University
  58. 2005-01-13 Billy <billy-at-dadadada.net> Re: [hangout] Why is he still able to teach!!!
  59. 2005-01-13 Billy <billy-at-dadadada.net> Re: [hangout] More wonderful BS from Columbia University
  60. 2005-01-13 Ruben Safir Secretary NYLXS <ruben-at-mrbrklyn.com> Re: [hangout] More wonderful BS from Columbia University
  61. 2005-01-12 Billy <billy-at-dadadada.net> Re: [hangout] More wonderful BS from Columbia University
  62. 2005-01-12 dspira-at-att.net Subject: [hangout] Why is he still able to teach!!!
  63. 2005-01-12 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [hangout] More wonderful BS from Columbia University
  64. 2005-01-12 From: "Inker, Evan" <EInker-at-gam.com> RE: [hangout] More wonderful BS from Columbia University
  65. 2005-01-12 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [hangout] Open Office and Web Publishing
  66. 2005-01-12 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [hangout] Bird Watching
  67. 2005-01-12 From: "Inker, Evan" <EInker-at-gam.com> Subject: [hangout] GNOME Journal, January 2005 Edition
  68. 2005-01-11 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [hangout] IBM - Software Patents
  69. 2005-01-11 From: "Inker, Evan" <EInker-at-gam.com> Subject: [hangout] NYLXS Needs You !! Call Out for Volunteers
  70. 2005-01-11 Ruben Safir <ruben-at-mrbrklyn.com> Re: [hangout] Staff Development and Organizational Capacity
  71. 2005-01-11 From: "Inker, Evan" <EInker-at-gam.com> RE: [hangout] Staff Development and Organizational Capacity
  72. 2005-01-11 From: "Inker, Evan" <EInker-at-gam.com> Subject: [hangout] Staff Development and Organizational Capacity
  73. 2005-01-11 wjc <wjc-at-optonline.net> Subject: [hangout] test
  74. 2005-01-09 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [hangout] It never ends......
  75. 2005-01-06 Billy <billy-at-dadadada.net> Re: [hangout] What is available for creating GUI's?
  76. 2005-01-06 From: "P.Robert Marino" <rob-at-concord-hs.org> Subject: [hangout] the contract number for the microsoft contract with the NYC DOE
  77. 2005-01-06 From: "Steve Milo" <slavik914-at-mrbrklyn.com> Subject: [hangout] What is available for creating GUI's?

NYLXS are Do'ers and the first step of Doing is Joining! Join NYLXS and make a difference in your community today!