Skip to content
Snippets Groups Projects
Select Git revision
  • 631c662c91d51ac340bda30d61822fdfe33020aa
  • 2024ss default
  • 2023ss
  • 2022ss
  • 2021ss protected
5 results

blink-asm-05.S

Blame
  • string-ops-2.c 321 B
    #include <stdio.h>
    #include <string.h>
    
    int main (void)
    {
      char *hello = "Hello, world!\n";
    
      printf ("%s\n", hello);
      printf ("%zd\n", strlen (hello));
    
      printf ("%s\n", hello + 7);
      printf ("%zd\n", strlen (hello + 7));
    
      hello[5] = 0;
      printf ("%s\n", hello);
      printf ("%zd\n", strlen (hello));
    
      return 0;
    }