Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.advocacy > #536397

Re: memmove( z, x, sizeof x );

From F Russell <fr@random.info>
Newsgroups comp.os.linux.advocacy
Subject Re: memmove( z, x, sizeof x );
Date 2019-10-10 21:30 +0000
Organization NewsGuy.com
Message-ID <qno7uc1kh9@news2.newsguy.com> (permalink)
References <lF%mF.108280$LC2.8395@fx45.iad> <Jeff-Relf.Me@Oct.9--0.56am.Seattle.2019> <qEJnF.117555$LC2.85008@fx45.iad>

Show all headers | View raw


On Thu, 10 Oct 2019 13:13:06 -0400, DFS wrote:

> On 10/9/2019 3:56 AM, Jeff-Relf.Me@. wrote:
>> DFS asked Feeb:
>>> Can you improve this simple C code ?
>> 
>> char *x = "17DeMoz", *y = "AcpSx" ;
>> char *z = (char *)malloc( sizeof x + sizeof y );
>> memmove( z, x, sizeof x );
>> memmove( z + sizeof x - 1, y, sizeof y );
>> printf( "%s", z );
> 

Foul!  Cheat!  Foul!  Cheat!

This shit code does NOT process arrays of char, and the original
problem explicitly stated "arrays of char."

This shit code processes STRINGS.

A string is NOT an array of char.  Got that?  A string is NOT an
array of char.

Stick to the original specs or else get fucked.

Incidentally, why are you communicating with that pathetic freak?

Have you ever seen the whacko gibberish he posts to sci.physics?

That Jeff-Ass deserves to get annihilated.  I'd love to see a couple
of ghetto dwellers pulverize his lame ass.

Ha, ha, ha, ha, ha!  A couple of sistas could easily beat the fuck
out of that sorry loser, while the bros looked on.

Back to comp.os.linux.advocacy | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Feeb, can you improve this simple C code? DFS <nospam@dfs.com> - 2019-10-08 08:53 -0400
  Re: Feeb, can you improve this simple C code? Steve Carroll <frelwizzen@gmail.com> - 2019-10-08 06:21 -0700
  Re: Feeb, can you improve this simple C code? Steve Carroll <frelwizzen@gmail.com> - 2019-10-08 07:07 -0700
  Re: Feeb, can you improve this simple C code? F Russell <fr@random.info> - 2019-10-08 14:33 +0000
    Re: Feeb, can you improve this simple C code? DFS <nospam@dfs.com> - 2019-10-08 17:10 -0400
      Re: Feeb, can you improve this simple C code? F Russell <fr@random.info> - 2019-10-08 21:25 +0000
        Re: Feeb, can you improve this simple C code? Steve Carroll <frelwizzen@gmail.com> - 2019-10-08 14:42 -0700
        Re: Feeb, can you improve this simple C code? Melzzzzz <Melzzzzz@zzzzz.com> - 2019-10-09 07:23 +0000
      Re: Feeb, can you improve this simple C code? Steve Carroll <frelwizzen@gmail.com> - 2019-10-08 14:27 -0700
      Re: Feeb, can you improve this simple C code? F Russell <fr@random.info> - 2019-10-08 21:38 +0000
        Re: Feeb, can you improve this simple C code? Steve Carroll <frelwizzen@gmail.com> - 2019-10-08 14:58 -0700
        Re: Feeb, can you improve this simple C code? Steve Carroll <frelwizzen@gmail.com> - 2019-10-08 15:14 -0700
        Re: Feeb, can you improve this simple C code? Melzzzzz <Melzzzzz@zzzzz.com> - 2019-10-09 07:25 +0000
          Re: Feeb, can you improve this simple C code? Steve Carroll <frelwizzen@gmail.com> - 2019-10-09 00:58 -0700
      Re: Feeb, can you improve this simple C code? Steve Carroll <fretwizzer@gmail.com> - 2019-10-08 14:51 -0700
        Re: Feeb, can you improve this simple C code? F Russell <fr@random.info> - 2019-10-08 22:19 +0000
          Re: Feeb, can you improve this simple C code? Steve Carroll <fretwizzer@gmail.com> - 2019-10-08 15:36 -0700
            Re: Feeb, can you improve this simple C code? Steve Carroll <frelwizzen@gmail.com> - 2019-10-08 16:00 -0700
            Re: Feeb, can you improve this simple C code? F Russell <fr@random.info> - 2019-10-09 07:36 +0000
          Re: Feeb, can you improve this simple C code? Steve Carroll <frelwizzen@gmail.com> - 2019-10-08 15:44 -0700
        Re: Feeb, can you improve this simple C code? Melzzzzz <Melzzzzz@zzzzz.com> - 2019-10-09 07:26 +0000
        Re: Feeb, can you improve this simple C code? F Russell <fr@random.info> - 2019-10-09 08:22 +0000
          Re: Feeb, can you improve this simple C code? Steve Carroll <frelwizzen@gmail.com> - 2019-10-09 01:44 -0700
          Re: Feeb, can you improve this simple C code? Steve Carroll <fretwizzer@gmail.com> - 2019-10-09 08:29 -0700
  Re: Feeb, can you improve this simple C code? F Russell <fr@random.info> - 2019-10-08 14:44 +0000
    Re: Feeb, can you improve this simple C code? Steve Carroll <"Steve Carroll"@noSPAM.none> - 2019-10-08 14:51 +0000
      Re: Feeb, can you improve this simple C code? F Russell <fr@random.info> - 2019-10-08 15:16 +0000
        Re: Feeb, can you improve this simple C code? Steve Carroll <frelwizzen@gmail.com> - 2019-10-08 08:40 -0700
      Re: Feeb, can you improve this simple C code? Mel <mel@zzzzz.com> - 2019-10-08 18:11 +0200
        Re: Feeb, can you improve this simple C code? Steve Carroll <frelwizzen@gmail.com> - 2019-10-08 09:40 -0700
        Re: Feeb, can you improve this simple C code? Steve Carroll <frelwizzen@gmail.com> - 2019-10-08 09:55 -0700
        Re: Feeb, can you improve this simple C code? F Russell <fr@random.info> - 2019-10-08 18:38 +0000
          Re: Feeb, can you improve this simple C code? Steve Carroll <frelwizzen@gmail.com> - 2019-10-08 11:56 -0700
          Re: Feeb, can you improve this simple C code? Melzzzzz <Melzzzzz@zzzzz.com> - 2019-10-08 19:42 +0000
            Re: Feeb, can you improve this simple C code? Steve Carroll <fretwizzer@gmail.com> - 2019-10-08 13:13 -0700
              Re: Feeb, can you improve this simple C code? F Russell <fr@random.info> - 2019-10-08 20:19 +0000
                Re: Feeb, can you improve this simple C code? F Russell <fr@random.info> - 2019-10-08 20:26 +0000
                Re: Feeb, can you improve this simple C code? Steve Carroll <fretwizzer@gmail.com> - 2019-10-08 13:38 -0700
                Re: Feeb, can you improve this simple C code? F Russell <fr@random.info> - 2019-10-08 20:55 +0000
                Re: Feeb, can you improve this simple C code? Steve Carroll <frelwizzen@gmail.com> - 2019-10-08 14:12 -0700
                Re: Feeb, can you improve this simple C code? Steve Carroll <frelwizzen@gmail.com> - 2019-10-08 13:57 -0700
                Re: Feeb, can you improve this simple C code? Steve Carroll <frelwizzen@gmail.com> - 2019-10-08 13:42 -0700
              Re: Feeb, can you improve this simple C code? Steve Carroll <frelwizzen@gmail.com> - 2019-10-08 13:27 -0700
    Re: Feeb, can you improve this simple C code? Steve Carroll <frelwizzen@gmail.com> - 2019-10-08 07:53 -0700
    Re: Feeb, can you improve this simple C code? Steve Carroll <frelwizzen@gmail.com> - 2019-10-08 08:09 -0700
    Re: Feeb, can you improve this simple C code? Mel <mel@zzzzz.com> - 2019-10-08 18:09 +0200
      Re: Feeb, can you improve this simple C code? Steve Carroll <frelwizzen@gmail.com> - 2019-10-08 09:25 -0700
        Re: Feeb, can you improve this simple C code? Steve Carroll <frelwizzen@gmail.com> - 2019-10-08 10:56 -0700
          Re: Feeb, can you improve this simple C code? Steve Carroll <frelwizzen@gmail.com> - 2019-10-08 12:11 -0700
  memmove( z, x, sizeof x ); Jeff-Relf.Me  @. - 2019-10-09 00:56 -0700
    Re: memmove( z, x, sizeof x ); DFS <nospam@dfs.com> - 2019-10-10 13:13 -0400
      "memcpy()" is a special case INSIDE "memmove()". Jeff-Relf.Me  @. - 2019-10-10 11:17 -0700
        Re: "memcpy()" is a special case INSIDE "memmove()". Melzzzzz <Melzzzzz@zzzzz.com> - 2019-10-10 22:27 +0000
      Re: memmove( z, x, sizeof x ); F Russell <fr@random.info> - 2019-10-10 21:20 +0000
        Re: memmove( z, x, sizeof x ); Siri Cruise <chine.bleu@yahoo.com> - 2019-10-10 15:07 -0700
          Re: memmove( z, x, sizeof x ); Melzzzzz <Melzzzzz@zzzzz.com> - 2019-10-10 22:36 +0000
          Re: memmove( z, x, sizeof x ); DFS <nospam@dfs.com> - 2019-10-11 09:29 -0400
            Re: memmove( z, x, sizeof x ); Siri Cruise <chine.bleu@yahoo.com> - 2019-10-11 08:28 -0700
              memmove( z, x, sizeof x ); Jeff-Relf.Me  @. - 2019-10-11 10:01 -0700
        Re: memmove( z, x, sizeof x ); Melzzzzz <Melzzzzz@zzzzz.com> - 2019-10-10 22:29 +0000
          Re: memmove( z, x, sizeof x ); F Russell <fr@random.info> - 2019-10-11 08:20 +0000
            Re: memmove( z, x, sizeof x ); Melzzzzz <Melzzzzz@zzzzz.com> - 2019-10-11 18:22 +0000
              Re: memmove( z, x, sizeof x ); chrisv <chrisv@nospam.invalid> - 2019-10-11 13:45 -0500
              Re: memmove( z, x, sizeof x ); DFS <nospam@dfs.com> - 2019-10-11 15:46 -0400
                Re: memmove( z, x, sizeof x ); Melzzzzz <Melzzzzz@zzzzz.com> - 2019-10-11 19:57 +0000
          Re: memmove( z, x, sizeof x ); F Russell <fr@random.info> - 2019-10-11 08:31 +0000
            Re: memmove( z, x, sizeof x ); Melzzzzz <Melzzzzz@zzzzz.com> - 2019-10-11 18:24 +0000
              Re: memmove( z, x, sizeof x ); "F. Russell" <frussell@random.info> - 2019-10-11 18:55 +0000
                Re: memmove( z, x, sizeof x ); Melzzzzz <Melzzzzz@zzzzz.com> - 2019-10-11 19:16 +0000
                Re: memmove( z, x, sizeof x ); "F. Russell" <frussell@random.info> - 2019-10-11 19:29 +0000
                Re: memmove( z, x, sizeof x ); Melzzzzz <Melzzzzz@zzzzz.com> - 2019-10-11 19:39 +0000
          Re: memmove( z, x, sizeof x ); F Russell <fr@random.info> - 2019-10-11 09:03 +0000
      Re: memmove( z, x, sizeof x ); F Russell <fr@random.info> - 2019-10-10 21:30 +0000
        Re: memmove( z, x, sizeof x ); Melzzzzz <Melzzzzz@zzzzz.com> - 2019-10-10 22:33 +0000
          Re: memmove( z, x, sizeof x ); F Russell <fr@random.info> - 2019-10-11 08:21 +0000
        Insane, Animalistic, Immoral, Detached. Jeff-Relf.Me  @. - 2019-10-10 15:43 -0700
          Asset bubbles make people horny, stupid. Jeff-Relf.Me  @. - 2019-10-10 16:04 -0700
          Re: Insane, Animalistic, Immoral, Detached. Checkmate <ricksabian1@gmail.com> - 2019-10-10 16:09 -0700
            Re: Insane, Animalistic, Immoral, Detached. Snit <usenet@gallopinginsanity.com> - 2019-10-10 16:28 -0700
              Re: Insane, Animalistic, Immoral, Detached. The Right And The Powerful <power2019@gmail.com> - 2019-10-10 18:35 -0500
                Re: Insane, Animalistic, Immoral, Detached. Snit <usenet@gallopinginsanity.com> - 2019-10-10 16:47 -0700
                Re: Insane, Animalistic, Immoral, Detached. The Right And The Powerful <power2019@gmail.com> - 2019-10-10 20:39 -0500
                Re: Insane, Animalistic, Immoral, Detached. Checkmate <ricksabian1@gmail.com> - 2019-10-10 20:39 -0700
                Re: Insane, Animalistic, Immoral, Detached. Snit <usenet@gallopinginsanity.com> - 2019-10-11 08:31 +0000
                Re: Insane, Animalistic, Immoral, Detached. chrisv <chrisv@nospam.invalid> - 2019-10-11 08:36 -0500
                Re: Insane, Animalistic, Immoral, Detached. Checkmate <ricksabian1@gmail.com> - 2019-10-10 20:36 -0700
                Re: Insane, Animalistic, Immoral, Detached. % <persent@gmail.com> - 2019-10-10 20:41 -0700
                Re: Insane, Animalistic, Immoral, Detached. chrisv <chrisv@nospam.invalid> - 2019-10-11 08:53 -0500
                Re: Insane, Animalistic, Immoral, Detached. Sergio <invalid@invalid.com> - 2019-10-11 10:14 -0500

csiph-web