To Webmaster...ampersands mis-interpreted

This is a discussion on To Webmaster...ampersands mis-interpreted within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Recently I posted concerning an interrupt related question. I found out the when you use ampersands prior to regs it ...

  1. #1
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590

    To Webmaster...ampersands mis-interpreted

    Recently I posted concerning an interrupt related question. I found out the when you use ampersands prior to regs it comes out as a copyright symbol and an s. I even did this in a code section and the same thing happened.

    What is going on and how do I correctly use the ampersand in code examples? If we cannot use them this is a huge problem as you and I know that C requires them to be used correctly.

    Example outside of code block:

    union REGS regs;
    regs.x.ax=0x03;
    int86(0x33,&regs,&regs);

    Example inside of code block:

    Code:
    union REGS regs;
    regs.x.ax=0x03;
    int86(0x33,&regs,&regs);
    If this question has already been answered sorry for the inconvenience of repeating yourself. I read the vbCode instructions and found nothing about this problem.

  2. #2
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,738
    hmm...maybe making them spaced out would work...lets try it:

    Code:
    union REGS regs; 
    regs.x.ax=0x03; 
    int86(0x33, & s, & s);
    My Website

    "Circular logic is good because it is."

  3. #3
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    we should have no special formatting in code tags... all in favor?
    hasafraggin shizigishin oppashigger...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. The Webmaster, and what we think of him.
    By sean in forum A Brief History of Cprogramming.com
    Replies: 24
    Last Post: 07-19-2004, 09:02 AM
  2. Webmaster Businesses
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 12-04-2003, 03:26 PM
  3. thank you webmaster and everyone... (take II)
    By fooball in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 02-20-2002, 10:00 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21