Is there a d analog of strncmp?
    cy via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Tue Aug 23 22:32:57 PDT 2016
    
    
  
import std.algorithm.searching: startsWith, commonPrefix;
if(s1.startsWith(s2)) {...}
string prefix = commonPrefix(s1,s2);
    
    
More information about the Digitalmars-d-learn
mailing list