• 0 Posts
  • 53 Comments
Joined 1 year ago
cake
Cake day: August 8th, 2023

help-circle

  • jsdz@lemmy.mltoLemmy Shitpost@lemmy.world*Permanently Deleted*
    link
    fedilink
    Interlingua
    arrow-up
    13
    ·
    edit-2
    11 months ago
    int is_even(int n)
    {
        int result = -1;
        char number[8]; //should be enough
        sprintf(number, "%d", n);
    
        // check the number
        // TODO: handle negative numbers
        for (char *p=number; *p; p++)
        {
            if (*p=='0' || *p=='2' || *p=='4' || *p=='6' || *p=='8')
                result = 1;
            else if (*p=='1' || *p=='3' || *p=='5' || *p=='7' || *p=='9')
                result = 0;
            else {
               fprintf(stderr, "Your number is wrong!\n");
               exit(1); 
            }
        }
        return result;
    }
    








  • It’s yet another scheme to gather data about Chrome users for the benefit of advertisers. Aside from the fundamental problems with that whole idea which people most often point to, it’s also underhanded in a way that cookies, tracking scripts, and browser fingerprinting aren’t: It’s code that’s built in to the web browser itself which exists for no purpose other than to act directly against the interests of its users. It may be the first time that’s happened in such an obvious and unambiguous way.