Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2002:
[Freeciv-Dev] Re: [PATCH] Handling of server GEN_STRING option changes (
Home

[Freeciv-Dev] Re: [PATCH] Handling of server GEN_STRING option changes (

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Cc: freeciv-dev@xxxxxxxxxxx, bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: [PATCH] Handling of server GEN_STRING option changes (PR#624)
From: rf13@xxxxxxxxxxxxxxxxx
Date: Fri, 4 Oct 2002 06:05:19 -0700

On Tue, Oct 01, 2002 at 11:47:53PM -0700, jdorje@xxxxxxxxxxxxxxxxxxxxx wrote:

> +  /* We check each character individually to see if it's valid.  

>     * This does not check for duplicate entries. */

This is easy:

> +  for (i = 0; i < len; i++) {
       if(strchr(demography+i+1,demography[i])) {
          error
       }

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx


[Prev in Thread] Current Thread [Next in Thread]